This commit is contained in:
秦宇航
2017-05-12 07:34:40 +08:00
parent b8bda08a7c
commit 70b9f39701
+3 -1
View File
@@ -369,6 +369,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
defaults.setValue("whiteList", forKey: "ShadowsocksRunningMode")
defaults.setValue("gfwlist.acl", forKey: "ACLFileName")
updateRunningModeMenu()
SyncSSLocal()
applyConfig()
}
@IBAction func selectACLBackCHNMode(_ sender: NSMenuItem) {
@@ -376,6 +377,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
defaults.setValue("whiteList", forKey: "ShadowsocksRunningMode")
defaults.setValue("backchn.acl", forKey: "ACLFileName")
updateRunningModeMenu()
SyncSSLocal()
applyConfig()
}
@IBAction func selectWhiteListMode(_ sender: NSMenuItem) {
@@ -383,6 +385,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
defaults.setValue("whiteList", forKey: "ShadowsocksRunningMode")
defaults.setValue("chn.acl", forKey: "ACLFileName")
updateRunningModeMenu()
SyncSSLocal()
applyConfig()
}
@@ -541,7 +544,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
whiteListModeMenuItem.state = 1
}
}
SyncSSLocal()
updateStatusItemUI()
}