fix(desktop): update server removal logic to clear default server URL if removed (#12372)

This commit is contained in:
OpeOginni 2026-02-06 13:20:03 +01:00 committed by GitHub
parent ac88c6b637
commit 400bc7973a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -369,6 +369,9 @@ export function DialogSelectServer() {
async function handleRemove(url: string) {
server.remove(url)
if (await platform.getDefaultServerUrl?.() === url) {
platform.setDefaultServerUrl?.(null)
}
}
return (