mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EditorMouseHoverPopupManager: prevent races (IDEA-CR-56548)
GitOrigin-RevId: 5dbea4e04b3f995199a43061a975d9e362829c89
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3b8ed7796d
commit
19dde982dc
+5
-1
@@ -221,7 +221,11 @@ public final class EditorMouseHoverPopupManager implements Disposable {
|
||||
.submit(AppExecutorUtil.getAppExecutorService());
|
||||
|
||||
myCurrentProgress = promise;
|
||||
promise.onProcessed(__ -> UIUtil.invokeLaterIfNeeded(() -> myCurrentProgress = null));
|
||||
promise.onProcessed(__ -> UIUtil.invokeLaterIfNeeded(() -> {
|
||||
if (myCurrentProgress == promise) {
|
||||
myCurrentProgress = null;
|
||||
}
|
||||
}));
|
||||
}, context.getShowingDelay());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user