mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-61556 Closing last open project window closes IDEA [temporary workaround: close last project on close button, next click will quit idea]
This commit is contained in:
@@ -165,7 +165,7 @@ public class IdeFrameImpl extends JFrame implements IdeFrame, DataProvider {
|
||||
}
|
||||
|
||||
final Project[] openProjects = ProjectManager.getInstance().getOpenProjects();
|
||||
if (openProjects.length > 1) {
|
||||
if (openProjects.length > 1 || (openProjects.length == 1 && SystemInfo.isMacSystemMenu)) {
|
||||
if (myProject != null && myProject.isOpen()) {
|
||||
ProjectUtil.closeAndDispose(myProject);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user