diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index 2302893..86b655e 100755 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -130,8 +130,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele _ = notifyCenter.rx.notification(NOTIFY_SWITCH_PROXY_MODE_SHORTCUT) .subscribe(onNext: { noti in let mode = defaults.string(forKey: "ShadowsocksRunningMode")! - self.updateRunningModeMenu() - self.applyConfig() var toastMessage: String!; switch mode { @@ -146,6 +144,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele toastMessage = "Auto Mode By PAC".localized } + self.updateRunningModeMenu() + self.applyConfig() + self.makeToast(toastMessage) })