JAL-1988 Don't put Quit in the File menu if there's a handler for it
authorBen Soares <b.soares@dundee.ac.uk>
Tue, 28 Jun 2022 12:31:55 +0000 (13:31 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Tue, 28 Jun 2022 12:31:55 +0000 (13:31 +0100)
src/jalview/jbgui/GDesktop.java

index 996cb1f..e046783 100755 (executable)
@@ -404,7 +404,10 @@ public class GDesktop extends JFrame
     FileMenu.add(saveAsState);
     FileMenu.add(loadState);
     FileMenu.addSeparator();
-    FileMenu.add(quit);
+    if (!APQHandlers.setQuit)
+    {
+      FileMenu.add(quit);
+    }
     if (!APQHandlers.setAbout)
     {
       HelpMenu.add(aboutMenuItem);