Added license and copyright notice.
[instantlauncher.git] / src / main / java / eu / svjatoslav / instantlauncher / menu / MultiLevelMenu.java
index de2e4c5..347766e 100755 (executable)
@@ -1,3 +1,11 @@
+/*
+ * Instantlauncher. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
+ */
+
 package eu.svjatoslav.instantlauncher.menu;
 
 import eu.svjatoslav.instantlauncher.InstantLauncher;
@@ -108,6 +116,7 @@ public class MultiLevelMenu implements MenuListener {
         if (chosenFile.isFile()) {
             if (chosenFile.canExecute()) {
                 executeCommand(chosenFile.getAbsolutePath());
+                InstantLauncher.exitProgram();
             } else {
                 boolean fileOpened;
                 try {