feat: let users minimize the preferences window

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-08-07 06:11:45 +09:00
1 parent fcdf40a03c
commit 2a0adf0ea0
1 file changed
+1
+1
View File
@@ -98,6 +98,7 @@ class App: AppCenterApplication, NSApplicationDelegate {
preferencesWindowController = PreferencesWindowController(preferencePanes: tabs as! [PreferencePane])
let window = preferencesWindowController.window!
window.styleMask.update(with: .miniaturizable)
let quitButton = NSButton(title: NSLocalizedString("Quit", comment: ""), target: nil, action: #selector(NSApplication.terminate(_:)))
let titleBarView = window.standardWindowButton(.closeButton)!.superview!
titleBarView.addSubview(quitButton)