Skip to content

Commit 4e421e7

Browse files
Terminate application when window closes
1 parent ccd4012 commit 4e421e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CommentWrapper/AppDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
1919
// Insert code here to tear down your application
2020
}
2121

22+
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
23+
return true
24+
}
25+
2226
// MARK: - Menu Bar Actions
2327

2428
@IBAction private func helpMenuContactItemSelected(sender: AnyObject) {

0 commit comments

Comments
 (0)