JAL-629 Check for new commandsSuccess before quit
authorBen Soares <b.soares@dundee.ac.uk>
Sat, 18 Mar 2023 22:12:31 +0000 (22:12 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Sat, 18 Mar 2023 22:12:31 +0000 (22:12 +0000)
src/jalview/bin/Jalview.java

index 5f1f228..046ad90 100755 (executable)
@@ -705,7 +705,7 @@ public class Jalview
     groovyscript = aparser.getValue("groovy", true);
     file = aparser.getValue("open", true);
 
-    if (file == null && desktop == null)
+    if (file == null && desktop == null && !commandsSuccess)
     {
       Jalview.exit("No files to open!", 1);
     }