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

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 (