Remove Open from default file menu
authorKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 9 Mar 2019 18:47:18 +0000 (12:47 -0600)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 9 Mar 2019 18:47:18 +0000 (12:47 -0600)
src/jexer/TApplication.java

index 872266d7af9021513838db3a2f15aea94dd19981..41fbea5b8459bb147cc099f2ddbd62f7b7cabd90 100644 (file)
@@ -433,9 +433,9 @@ public class TApplication implements Runnable {
                         // resumes working on the primary.
                         application.secondaryEventHandler = null;
 
-                        // DO NOT UNLOCK.  Primary thread just came back from
-                        // primaryHandleEvent() and will unlock in the else
-                        // block below.  Just wake it up.
+                        // We are ready to exit, wake up the primary thread.
+                        // Remember that it is currently sleeping inside its
+                        // primaryHandleEvent().
                         synchronized (application.primaryEventHandler) {
                             application.primaryEventHandler.notify();
                         }
@@ -3025,9 +3025,8 @@ public class TApplication implements Runnable {
      */
     public final TMenu addFileMenu() {
         TMenu fileMenu = addMenu(i18n.getString("fileMenuTitle"));
-        fileMenu.addDefaultItem(TMenu.MID_OPEN_FILE);
-        fileMenu.addSeparator();
         fileMenu.addDefaultItem(TMenu.MID_SHELL);
+        fileMenu.addSeparator();
         fileMenu.addDefaultItem(TMenu.MID_EXIT);
         TStatusBar statusBar = fileMenu.newStatusBar(i18n.
             getString("fileMenuStatus"));