From: Mateusz Warowny Date: Wed, 12 Jul 2023 13:50:06 +0000 (+0200) Subject: JAL-4199 Fix cancel button not appearing on progress bar X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=af1f57f65bad11f8e0329be6f539ae001630948d;p=jalview.git JAL-4199 Fix cancel button not appearing on progress bar --- diff --git a/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java b/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java index 73ad8f6..a7202e9 100644 --- a/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java +++ b/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java @@ -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