From 40ecd657bc52670789f59d7c5fe266fa5940c6ef Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 10 Nov 2024 21:15:00 -0500 Subject: [PATCH] Fix the workspace analysis modal getting stuck Dumb fix is just to wait 100ms so the 1ms to show the modal isn't raced by the analysis (which can also just be 1ms) --- .../software/coley/recaf/ui/pane/WorkspaceInformationPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/WorkspaceInformationPane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/WorkspaceInformationPane.java index 3eccefc00..022a02b10 100644 --- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/WorkspaceInformationPane.java +++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/WorkspaceInformationPane.java @@ -107,7 +107,7 @@ public WorkspaceInformationPane(@Nonnull TextProviderService textService, // When the summary is done, clear the "loading..." overlay. CompletableFuture.allOf(summaryFutures.toArray(CompletableFuture[]::new)) - .whenCompleteAsync((ignored, error) -> modal.hide(true), FxThreadUtil.executor()); + .whenCompleteAsync((ignored, error) -> FxThreadUtil.delayedRun(100, () -> modal.hide(true))); } @Nonnull