macOS: Quit in main menu shall just close the window
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
3f25d54dcc
commit
5190fc2249
|
@ -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