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";
|
"macMenuHideApp" = "Hide WireGuard";
|
||||||
"macMenuHideOtherApps" = "Hide Others";
|
"macMenuHideOtherApps" = "Hide Others";
|
||||||
"macMenuShowAllApps" = "Show All";
|
"macMenuShowAllApps" = "Show All";
|
||||||
|
"macMenuQuitManagingTunnels" = "Quit Tunnel Manager";
|
||||||
|
|
||||||
"macMenuFile" = "File";
|
"macMenuFile" = "File";
|
||||||
"macMenuCloseWindow" = "Close Window";
|
"macMenuCloseWindow" = "Close Window";
|
||||||
|
|
|
@ -51,9 +51,8 @@ class MainMenu: NSMenu {
|
||||||
|
|
||||||
menu.addItem(NSMenuItem.separator())
|
menu.addItem(NSMenuItem.separator())
|
||||||
|
|
||||||
let quitMenuItem = menu.addItem(withTitle: tr("macMenuQuit"),
|
menu.addItem(withTitle: tr("macMenuQuitManagingTunnels"),
|
||||||
action: #selector(AppDelegate.quit), keyEquivalent: "q")
|
action: #selector(NSWindow.performClose(_:)), keyEquivalent: "q")
|
||||||
quitMenuItem.target = NSApp.delegate
|
|
||||||
|
|
||||||
return menu
|
return menu
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue