Add about menu item.
This commit is contained in:
@ -287,6 +287,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
|
|||||||
NSWorkspace.sharedWorkspace().openURL(NSURL(string: "https://github.com/qiuyuzhou/ShadowsocksX-NG/issues")!)
|
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() {
|
func updateLaunchAtLoginMenu() {
|
||||||
if launchAtLoginController.launchAtLogin {
|
if launchAtLoginController.launchAtLogin {
|
||||||
lanchAtLoginMenuItem.state = 1
|
lanchAtLoginMenuItem.state = 1
|
||||||
|
@ -123,6 +123,12 @@
|
|||||||
<action selector="feedback:" target="Voe-Tx-rLC" id="ogn-lf-bqE"/>
|
<action selector="feedback:" target="Voe-Tx-rLC" id="ogn-lf-bqE"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
|
<menuItem title="About" id="LgB-6g-Gba">
|
||||||
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="showAbout:" target="Voe-Tx-rLC" id="ToP-D0-suY"/>
|
||||||
|
</connections>
|
||||||
|
</menuItem>
|
||||||
<menuItem isSeparatorItem="YES" id="lSf-ni-kjo"/>
|
<menuItem isSeparatorItem="YES" id="lSf-ni-kjo"/>
|
||||||
<menuItem title="Quit" keyEquivalent="q" id="vJS-JW-byz">
|
<menuItem title="Quit" keyEquivalent="q" id="vJS-JW-byz">
|
||||||
<connections>
|
<connections>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Copyright © 2016年 qiuyuzhou. All rights reserved.</string>
|
<string>Copyright © 2016年 qiuyuzhou. All rights reserved. License GPLv3.</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>MainMenu</string>
|
<string>MainMenu</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
||||||
|
Reference in New Issue
Block a user