JAL-3921 allow Jmol saveState to be executed as evalScriptWait so state is written...
[jalview.git] / src / jalview / ext / jmol / JmolCommands.java
index 19d64f0..7fa47a1 100644 (file)
@@ -241,7 +241,9 @@ public class JmolCommands extends StructureCommandsBase
     /*
      * https://chemapps.stolaf.edu/jmol/docs/#writemodel
      */
-    return new StructureCommand("write STATE \"" + filepath + "\"");
+    StructureCommand sc = new StructureCommand("write STATE \"" + filepath + "\"");
+    sc.setWaitNeeded(true);
+    return sc;
   }
 
   @Override