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:
parent
48b859fbd2
commit
1371d2d62e
|
@ -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 {
|
||||||
|
createAndShowMainWindow()
|
||||||
if (!flag) {
|
|
||||||
createAndShowMainWindow()
|
|
||||||
}
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue