fix(ux): simplify tool menu
This commit is contained in:
1 parent
15eb37b40e
commit
de7f428ba1
1 file changed
+1
-5
@@ -5,16 +5,12 @@ class StatusItem {
|
||||
let item = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
|
||||
item.button!.title = Application.name
|
||||
item.menu = NSMenu()
|
||||
item.menu!.addItem(
|
||||
withTitle: "Version #VERSION#",
|
||||
action: nil,
|
||||
keyEquivalent: "")
|
||||
item.menu!.addItem(
|
||||
withTitle: "Preferences…",
|
||||
action: #selector(application.showPreferencesPanel),
|
||||
keyEquivalent: ",")
|
||||
item.menu!.addItem(
|
||||
withTitle: "Quit \(ProcessInfo.processInfo.processName)",
|
||||
withTitle: "Quit \(Application.name) #VERSION#",
|
||||
action: #selector(NSApplication.terminate(_:)),
|
||||
keyEquivalent: "q")
|
||||
return item
|
||||
|
||||
Reference in new issue
Block a user