Add about menu item.

This commit is contained in:
Charlie Qiu
2016-06-12 08:25:52 +08:00
parent 4991c2cdc4
commit a4bee86080
3 changed files with 12 additions and 1 deletions

View File

@ -287,6 +287,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
NSWorkspace.sharedWorkspace().openURL(NSURL(string: "https://github.com/qiuyuzhou/ShadowsocksX-NG/issues")!)
}
@IBAction func showAbout(sender: NSMenuItem) {
NSApp.orderFrontStandardAboutPanel(sender);
NSApp.activateIgnoringOtherApps(true)
}
func updateLaunchAtLoginMenu() {
if launchAtLoginController.launchAtLogin {
lanchAtLoginMenuItem.state = 1