Add Help menu item.

This commit is contained in:
Qiu Yuzhou
2018-05-08 14:24:03 +08:00
parent 9e09bd8fe7
commit 51c25cbc68
2 changed files with 10 additions and 0 deletions

View File

@ -389,6 +389,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
NSWorkspace.shared.open(URL(string: "https://github.com/shadowsocks/ShadowsocksX-NG/releases")!)
}
@IBAction func showHelp(_ sender: NSMenuItem) {
NSWorkspace.shared.open(URL(string: "https://github.com/shadowsocks/ShadowsocksX-NG/wiki")!)
}
@IBAction func showAbout(_ sender: NSMenuItem) {
NSApp.orderFrontStandardAboutPanel(sender);
NSApp.activate(ignoringOtherApps: true)