Fix bug.
This commit is contained in:
@ -151,7 +151,9 @@ func SyncSSLocal() {
|
|||||||
changed = changed || generateSSLocalLauchAgentPlist()
|
changed = changed || generateSSLocalLauchAgentPlist()
|
||||||
let mgr = ServerProfileManager.instance
|
let mgr = ServerProfileManager.instance
|
||||||
if mgr.activeProfileId != nil {
|
if mgr.activeProfileId != nil {
|
||||||
changed = changed || writeSSLocalConfFile((mgr.getActiveProfile()?.toJsonConfig())!)
|
if let profile = mgr.getActiveProfile() {
|
||||||
|
changed = changed || writeSSLocalConfFile((profile.toJsonConfig()))
|
||||||
|
}
|
||||||
|
|
||||||
let on = UserDefaults.standard.bool(forKey: "ShadowsocksOn")
|
let on = UserDefaults.standard.bool(forKey: "ShadowsocksOn")
|
||||||
if on {
|
if on {
|
||||||
|
Reference in New Issue
Block a user