JAL-3690 patch out spinning animation for web service jobs
authorJim Procter <jprocter@issues.jalview.org>
Tue, 15 Dec 2020 18:42:37 +0000 (18:42 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 15 Dec 2020 18:42:37 +0000 (18:42 +0000)
src/jalview/gui/WebserviceInfo.java

index b88102e..b9b42dc 100644 (file)
@@ -22,6 +22,7 @@ package jalview.gui;
 
 import jalview.jbgui.GWebserviceInfo;
 import jalview.util.MessageManager;
+import jalview.util.Platform;
 import jalview.ws.WSClientI;
 
 import java.awt.BorderLayout;
@@ -350,9 +351,12 @@ public class WebserviceInfo extends GWebserviceInfo
     titlePanel.add(ap, BorderLayout.WEST);
     titlePanel.add(titleText, BorderLayout.CENTER);
     setStatus(currentStatus);
-
-    Thread thread = new Thread(ap);
-    thread.start();
+    if (!Platform.isJS())
+    {
+      // No animation for the moment//
+      Thread thread = new Thread(ap);
+      thread.start();
+    }
     final WebserviceInfo thisinfo = this;
     frame.addInternalFrameListener(
             new InternalFrameAdapter()