increased menu depth
[instantlauncher.git] / src / main / java / eu / svjatoslav / instantlauncher / menu / MultiLevelMenu.java
index fa200da..308f5ba 100755 (executable)
@@ -20,7 +20,7 @@ public class MultiLevelMenu implements MenuListener {
 
     private final InstantLauncher instantLauncher;
 
-    private static final int VERTICAL_MENUS_COUNT = 5;
+    private static final int VERTICAL_MENUS_COUNT = 7;
 
     public static final Dimension CONTENT_PANEL_SIZE = new Dimension(1024, 900);
 
@@ -120,7 +120,7 @@ public class MultiLevelMenu implements MenuListener {
                     Runtime.getRuntime().exec(c);
                     InstantLauncher.exitProgram();
                 } catch (final IOException e) {
-                    ExceptionDialog.showException(e);
+                    new ExceptionDialog(e);
                 }
 
             } else {
@@ -147,7 +147,7 @@ public class MultiLevelMenu implements MenuListener {
                 InstantLauncher.exitProgram();
 
             } catch (final IOException e) {
-                ExceptionDialog.showException(e);
+                new ExceptionDialog(e);
             }
         } else {
             chosenFile.setExecutable(!chosenFile.canExecute());