diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index f44be5a8..3678bf84 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -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 diff --git a/ShadowsocksX-NG/Base.lproj/MainMenu.xib b/ShadowsocksX-NG/Base.lproj/MainMenu.xib index 98496990..cdd88f3d 100644 --- a/ShadowsocksX-NG/Base.lproj/MainMenu.xib +++ b/ShadowsocksX-NG/Base.lproj/MainMenu.xib @@ -123,6 +123,12 @@ + + + + + + diff --git a/ShadowsocksX-NG/Info.plist b/ShadowsocksX-NG/Info.plist index 8927441c..e2c06496 100644 --- a/ShadowsocksX-NG/Info.plist +++ b/ShadowsocksX-NG/Info.plist @@ -44,7 +44,7 @@ LSUIElement NSHumanReadableCopyright - Copyright © 2016年 qiuyuzhou. All rights reserved. + Copyright © 2016年 qiuyuzhou. All rights reserved. License GPLv3. NSMainNibFile MainMenu NSPrincipalClass