Quit the Mac app when its window closes

This commit is contained in:
Ian Gulliver
2026-10-20 23:30:33 -07:00
parent 30471cc27a
commit 74de15db8e
+1 -9
View File
@@ -17,15 +17,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
false
}
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
if flag {
return true
}
Servers.shared.openWindow?()
return false
true
}
func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {