mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-12-06 14:43:49 +00:00
update subscribe at launch
This commit is contained in:
@@ -204,9 +204,18 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
|
|||||||
if defaults.bool(forKey: "ConnectAtLaunch") {
|
if defaults.bool(forKey: "ConnectAtLaunch") {
|
||||||
toggleRunning(toggleRunningMenuItem)
|
toggleRunning(toggleRunningMenuItem)
|
||||||
}
|
}
|
||||||
// Version Check!
|
|
||||||
if defaults.bool(forKey: "AutoCheckUpdate"){
|
DispatchQueue.global().async {
|
||||||
checkForUpdate(mustShowAlert: false)
|
// Version Check!
|
||||||
|
if defaults.bool(forKey: "AutoCheckUpdate"){
|
||||||
|
self.checkForUpdate(mustShowAlert: false)
|
||||||
|
}
|
||||||
|
if defaults.bool(forKey: "AutoUpdateSubscribe") {
|
||||||
|
SubscribeManager.instance.updateAllServerFromSubscribe()
|
||||||
|
}
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user