JAL-4199 Fix cancel button not appearing on progress bar
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 12 Jul 2023 13:50:06 +0000 (15:50 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 12 Jul 2023 14:25:05 +0000 (16:25 +0200)
src/jalview/ws2/gui/AnnotationServiceGuiHandler.java

index 73ad8f6..a7202e9 100644 (file)
@@ -36,6 +36,7 @@ public class AnnotationServiceGuiHandler
   @Override
   public void workerStarted(AlignCalcWorkerAdapter source)
   {
+    progressIndicator.addProgressBar(progressId, action.getFullName());
     progressIndicator.registerHandler(progressId,
         new IProgressIndicatorHandler()
         {
@@ -52,7 +53,6 @@ public class AnnotationServiceGuiHandler
             return true;
           }
         });
-    progressIndicator.addProgressBar(progressId, action.getFullName());
   }
 
   @Override