mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix(desktop): update server removal logic to clear default server URL if removed (#12372)
This commit is contained in:
parent
ac88c6b637
commit
400bc7973a
@ -369,6 +369,9 @@ export function DialogSelectServer() {
|
||||
|
||||
async function handleRemove(url: string) {
|
||||
server.remove(url)
|
||||
if (await platform.getDefaultServerUrl?.() === url) {
|
||||
platform.setDefaultServerUrl?.(null)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user