mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[mac] save fullscreen state fix
This commit is contained in:
@@ -18,6 +18,7 @@ package com.intellij.openapi.wm.impl;
|
||||
import com.intellij.Patches;
|
||||
import com.intellij.ide.AppLifecycleListener;
|
||||
import com.intellij.ide.DataManager;
|
||||
import com.intellij.ide.GeneralSettings;
|
||||
import com.intellij.ide.IdeEventQueue;
|
||||
import com.intellij.ide.impl.DataManagerImpl;
|
||||
import com.intellij.ide.ui.UISettings;
|
||||
@@ -193,7 +194,7 @@ public final class WindowManagerImpl extends WindowManagerEx implements Applicat
|
||||
@Override
|
||||
public void appClosing() {
|
||||
// save fullscreen window states
|
||||
if (SystemInfo.isMacOSLion) {
|
||||
if (SystemInfo.isMacOSLion && GeneralSettings.getInstance().isReopenLastProject()) {
|
||||
Project[] openProjects = ProjectManager.getInstance().getOpenProjects();
|
||||
|
||||
if (openProjects.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user