fix: restart to update not working on windows (#307441)

This commit is contained in:
Robo
2026-04-03 01:09:00 +09:00
committed by GitHub
parent 0db3a09a29
commit 1166429bc9

View File

@@ -492,7 +492,7 @@ export class Win32UpdateService extends AbstractUpdateService implements IRelaun
}
protected override doQuitAndInstall(): void {
if (this.state.type !== StateType.Ready || !this.availableUpdate) {
if ((this.state.type !== StateType.Ready && this.state.type !== StateType.Restarting) || !this.availableUpdate) {
return;
}