Skip to content

Commit

Permalink
Fix the workspace analysis modal getting stuck
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Col-E committed Nov 11, 2024
1 parent e8d0108 commit 40ecd65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40ecd65

Please sign in to comment.