mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't call modality stateForComponent from pooled thread (EA-122699 - CME: LaterInvocator.lambda$modalityStateForWindow$)
This commit is contained in:
@@ -232,9 +232,9 @@ final class PaintersHelper implements Painter.Listener {
|
||||
(FileUtil.isAbsolutePlatformIndependent(filePath)
|
||||
? new File(filePath)
|
||||
: new File(PathManager.getConfigPath(), filePath)).toURI().toURL();
|
||||
ModalityState modalityState = ModalityState.stateForComponent(rootComponent);
|
||||
ApplicationManager.getApplication().executeOnPooledThread(() -> {
|
||||
final Image m = ImageLoader.loadFromUrl(url);
|
||||
ModalityState modalityState = ModalityState.stateForComponent(rootComponent);
|
||||
ApplicationManager.getApplication().invokeLater(() -> resetImage(propertyValue, m, newAlpha, newFillType, newAnchor), modalityState);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user