From: Kevin Lamonte Date: Sat, 9 Mar 2019 18:47:18 +0000 (-0600) Subject: Remove Open from default file menu X-Git-Tag: fanfix-swing-0.0.1~12^2~13^2~154 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=b97249160c37aef40ed6ac35cea8a39748474ae1;p=fanfix-swing.git Remove Open from default file menu --- diff --git a/src/jexer/TApplication.java b/src/jexer/TApplication.java index 872266d7..41fbea5b 100644 --- a/src/jexer/TApplication.java +++ b/src/jexer/TApplication.java @@ -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"));