This commit is contained in:
Qiu Yuzhou
2017-03-22 17:25:13 +08:00
parent 63afe0a325
commit f61c0e5a0a

View File

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