mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[workspace model] don't fire rootsChanged event for changes in global libraries if project isn't opened yet (IDEA-250455)
If a global library table is initialized during loading of a project, it doesn't make sense to fire rootsChanged events, and this may lead to exception if loading is performed on a background thread. GitOrigin-RevId: f659ec8bee3935ab453b9d2efd1eaade72514965
This commit is contained in:
committed by
intellij-monorepo-bot
parent
333d5cca77
commit
1cdc186b70
+3
-1
@@ -135,7 +135,9 @@ class ProjectRootManagerBridge(project: Project) : ProjectRootManagerComponent(p
|
||||
}
|
||||
|
||||
private fun fireRootsChanged() {
|
||||
makeRootsChange(EmptyRunnable.INSTANCE, false, true)
|
||||
if (myProject.isOpen) {
|
||||
makeRootsChange(EmptyRunnable.INSTANCE, false, true)
|
||||
}
|
||||
}
|
||||
|
||||
// Listener for global libraries linked to module
|
||||
|
||||
Reference in New Issue
Block a user