Add check for updates menu item.

This commit is contained in:
Qiu Yuzhou
2018-05-08 14:21:32 +08:00
parent 4b3340e6c9
commit 9e09bd8fe7
2 changed files with 10 additions and 0 deletions

View File

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