fix(desktop): avoid relaunching without installing updates (#23806)

This commit is contained in:
Brendan Allan
2026-04-24 13:27:36 +08:00
committed by GitHub
parent 3bfe6a1ef6
commit 2e156b8990
7 changed files with 34 additions and 19 deletions

View File

@@ -129,13 +129,12 @@ export const SettingsGeneral: Component = () => {
}
const actions =
platform.update && platform.restart
platform.updateAndRestart
? [
{
label: language.t("toast.update.action.installRestart"),
onClick: async () => {
await platform.update!()
await platform.restart!()
await platform.updateAndRestart!()
},
},
{