Skip to content

Commit

Permalink
Terminate application when window closes
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBarnegren committed May 6, 2021
1 parent ccd4012 commit 4e421e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CommentWrapper/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// Insert code here to tear down your application
}

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}

// MARK: - Menu Bar Actions

@IBAction private func helpMenuContactItemSelected(sender: AnyObject) {
Expand Down

0 comments on commit 4e421e7

Please sign in to comment.