macOS: Quit in main menu shall just close the window
This commit is contained in:
parent
33b9ffa74b
commit
cf35eaf145
|
@ -308,6 +308,7 @@
|
|||
"macMenuHideApp" = "Hide WireGuard";
|
||||
"macMenuHideOtherApps" = "Hide Others";
|
||||
"macMenuShowAllApps" = "Show All";
|
||||
"macMenuQuitManagingTunnels" = "Quit Tunnel Manager";
|
||||
|
||||
"macMenuFile" = "File";
|
||||
"macMenuCloseWindow" = "Close Window";
|
||||
|
|
|
@ -51,9 +51,8 @@ class MainMenu: NSMenu {
|
|||
|
||||
menu.addItem(NSMenuItem.separator())
|
||||
|
||||
let quitMenuItem = menu.addItem(withTitle: tr("macMenuQuit"),
|
||||
action: #selector(AppDelegate.quit), keyEquivalent: "q")
|
||||
quitMenuItem.target = NSApp.delegate
|
||||
menu.addItem(withTitle: tr("macMenuQuitManagingTunnels"),
|
||||
action: #selector(NSWindow.performClose(_:)), keyEquivalent: "q")
|
||||
|
||||
return menu
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue