fix(desktop): avoid relaunching without installing updates (#23806)
This commit is contained in:
parent
3bfe6a1ef6
commit
2e156b8990
7 changed files with 34 additions and 19 deletions
|
|
@ -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!()
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue