Exit program when running external application.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Mon, 21 Nov 2016 06:23:04 +0000 (08:23 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Mon, 21 Nov 2016 06:23:04 +0000 (08:23 +0200)
instantlauncher.iml
src/main/java/eu/svjatoslav/instantlauncher/menu/MultiLevelMenu.java

index e1061c8..29f95d9 100644 (file)
@@ -5,7 +5,6 @@
     <output-test url="file://$MODULE_DIR$/target/test-classes" />
     <content url="file://$MODULE_DIR$">
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
       <excludeFolder url="file://$MODULE_DIR$/target" />
     </content>
     <orderEntry type="inheritedJdk" />
index de2e4c5..0134ce4 100755 (executable)
@@ -108,6 +108,7 @@ public class MultiLevelMenu implements MenuListener {
         if (chosenFile.isFile()) {
             if (chosenFile.canExecute()) {
                 executeCommand(chosenFile.getAbsolutePath());
+                InstantLauncher.exitProgram();
             } else {
                 boolean fileOpened;
                 try {