update subscribe at launch

This commit is contained in:
秦宇航
2017-07-16 21:23:57 +08:00
parent 010b093368
commit b4ce1eb460
+12 -3
View File
@@ -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 {
}
}
}