Skip to content

Commit

Permalink
terminate app when closing main window
Browse files Browse the repository at this point in the history
  • Loading branch information
softdevstory committed Aug 29, 2017
1 parent c55bedb commit 9ce6f7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion yata/Sources/WindowControllers/MainWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ extension MainWindowController: NSWindowDelegate {

sheet.contentView?.needsDisplay = true
}

func windowWillClose(_ notification: Notification) {
NSApp.terminate(self)
}
}

// MARK: Toolbar
Expand Down Expand Up @@ -414,4 +418,3 @@ extension MainWindowController: NSToolbarDelegate {
return toolbarItem
}
}

2 changes: 1 addition & 1 deletion yata/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>0.1</string>
<key>CFBundleVersion</key>
<string>2</string>
<string>3</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down

0 comments on commit 9ce6f7a

Please sign in to comment.