Add menu item "Edit User Rules For PAC..."

This commit is contained in:
Charlie Qiu
2016-06-11 06:21:19 +08:00
parent df0beab836
commit 69ef77f277
3 changed files with 12 additions and 1 deletions

View File

@ -169,6 +169,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
UpdatePACFromGFWList()
}
@IBAction func editUserRulesForPAC(sender: NSMenuItem) {
let url = NSURL(fileURLWithPath: PACUserRuleFilePath)
NSWorkspace.sharedWorkspace().openURL(url)
}
@IBAction func showQRCodeForCurrentServer(sender: NSMenuItem) {
var errMsg: String?
let mgr = ServerProfileManager()