mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-20 06:24:32 +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") {
|
||||
toggleRunning(toggleRunningMenuItem)
|
||||
}
|
||||
// Version Check!
|
||||
if defaults.bool(forKey: "AutoCheckUpdate"){
|
||||
checkForUpdate(mustShowAlert: false)
|
||||
|
||||
DispatchQueue.global().async {
|
||||
// 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