This commit is contained in:
Conrad @ InnoIso 2026-01-29 19:00:22 +00:00 committed by GitHub
commit b2f5988655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -533,6 +533,15 @@ final class AppState {
gateway["remote"] = remote
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 }