mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection toolwindow: use read action to check for problems
This commit is contained in:
+1
-1
@@ -682,7 +682,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
|
||||
}
|
||||
}
|
||||
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
if (myView == null && !InspectionResultsView.hasProblems(globalTools, this, createContentProvider())) {
|
||||
if (myView == null && !ReadAction.compute(() -> InspectionResultsView.hasProblems(globalTools, this, createContentProvider())).booleanValue()) {
|
||||
return;
|
||||
}
|
||||
createViewIfNeed();
|
||||
|
||||
Reference in New Issue
Block a user