Skip to content

Commit 053b1e2

Browse files
committed
Quit when window closes
1 parent 8e59b34 commit 053b1e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Ka-Block/macOS/AppDelegate.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
99
func applicationWillTerminate(_ aNotification: Notification) {
1010
// Insert code here to tear down your application
1111
}
12-
}
1312

13+
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
14+
true
15+
}
16+
}

0 commit comments

Comments
 (0)