Fix bug #283.
This commit is contained in:
@ -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)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user