mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-20 06:24:32 +00:00
UI fix
This commit is contained in:
@@ -515,6 +515,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
|
||||
globalModeMenuItem.state = 0
|
||||
manualModeMenuItem.state = 0
|
||||
whiteListModeMenuItem.state = 0
|
||||
ACLBackChinaMenuItem.state = 0
|
||||
ACLAutoModeMenuItem.state = 0
|
||||
ACLModeMenuItem.state = 0
|
||||
if mode == "auto" {
|
||||
autoModeMenuItem.state = 1
|
||||
} else if mode == "global" {
|
||||
@@ -522,10 +525,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
|
||||
} else if mode == "manual" {
|
||||
manualModeMenuItem.state = 1
|
||||
} else if mode == "whiteList" {
|
||||
ACLModeMenuItem.state = 0
|
||||
whiteListModeMenuItem.state = 0
|
||||
ACLBackChinaMenuItem.state = 0
|
||||
ACLAutoModeMenuItem.state = 0
|
||||
let aclMode = defaults.string(forKey: "ACLFileName")!
|
||||
switch aclMode {
|
||||
case "backchn.acl":
|
||||
|
||||
Reference in New Issue
Block a user