JAL-3563 adds Jalview.setSynchronous()
[jalview.git] / src / jalview / gui / Desktop.java
index 9e0c89b..1e58d1b 100644 (file)
@@ -441,7 +441,7 @@ public class Desktop extends GDesktop
       // it deletes the unneeded Java-only code form the JavaScript version
       // completely (@j2sIgnore), since it will never be used there.
 
-      if (!Platform.isJS())
+      if (!Platform.isJS() && !Jalview.isSynchronous())
       /**
        * Java only
        *