mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-20 14:34:30 +00:00
Fix if update subscribe delete using node problem
Now update subscribe delete the using node, the app will automatic select the first profile
This commit is contained in:
@@ -207,7 +207,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
|
||||
|
||||
DispatchQueue.global().async {
|
||||
// Version Check!
|
||||
if defaults.bool(forKey: "AutoCheckUpdate"){
|
||||
if defaults.bool(forKey: "AutoCheckUpdate") {
|
||||
self.checkForUpdate(mustShowAlert: false)
|
||||
}
|
||||
if defaults.bool(forKey: "AutoUpdateSubscribe") {
|
||||
|
||||
@@ -26,6 +26,12 @@ class ServerProfileManager: NSObject {
|
||||
}
|
||||
}
|
||||
activeProfileId = defaults.string(forKey: "ActiveServerProfileId")
|
||||
for p in profiles {
|
||||
if p.uuid == activeProfileId {
|
||||
return
|
||||
}
|
||||
}
|
||||
activeProfileId = profiles[0].uuid
|
||||
}
|
||||
|
||||
func setActiveProfiledId(_ id: String) {
|
||||
|
||||
Reference in New Issue
Block a user