Removed flag check because it is passed as true even if the window isn't visible due to being minimized into the app icon.

This commit is contained in:
Maurice Parker 2018-09-06 17:49:31 -05:00
parent 48b859fbd2
commit 1371d2d62e
1 changed files with 1 additions and 4 deletions

View File

@ -155,10 +155,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
} }
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool { func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
if (!flag) {
createAndShowMainWindow() createAndShowMainWindow()
}
return false return false
} }