Merge 61a7f08e7b into 4583f88626
This commit is contained in:
commit
b2f5988655
@ -533,6 +533,15 @@ final class AppState {
|
|||||||
gateway["remote"] = remote
|
gateway["remote"] = remote
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
} else if connectionMode == .unconfigured {
|
||||||
|
// Prevent implicit remote-mode re-selection when the user explicitly
|
||||||
|
// chooses "Not configured" in the UI. Leaving gateway.remote.url
|
||||||
|
// behind causes applyConfigOverrides to force .remote.
|
||||||
|
if var remote = gateway["remote"] as? [String: Any], remote["url"] != nil {
|
||||||
|
remote.removeValue(forKey: "url")
|
||||||
|
gateway["remote"] = remote
|
||||||
|
changed = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
guard changed else { return }
|
guard changed else { return }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user