mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not perform unnecessary tasks on exiting
This commit is contained in:
+1
-1
@@ -229,6 +229,7 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
}
|
||||
|
||||
private boolean disposeSelf() {
|
||||
myDisposeInProgress = true;
|
||||
Project[] openProjects = ProjectManagerEx.getInstanceEx().getOpenProjects();
|
||||
final boolean[] canClose = {true};
|
||||
for (final Project project : openProjects) {
|
||||
@@ -240,7 +241,6 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
}, ApplicationBundle.message("command.exit"), null);
|
||||
if (!canClose[0]) return false;
|
||||
}
|
||||
myDisposeInProgress = true;
|
||||
Disposer.dispose(this);
|
||||
|
||||
Disposer.assertIsEmpty();
|
||||
|
||||
Reference in New Issue
Block a user