Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/desktop/src/main.ts
Comment thread
macroscopeapp[bot] marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,11 @@ async function installDownloadedUpdate(): Promise<{ accepted: boolean; completed
clearUpdatePollTimer();
try {
await stopBackendAndWaitForExit();
autoUpdater.quitAndInstall();
// Destroy all windows before launching the NSIS installer
for (const win of BrowserWindow.getAllWindows()) {
win.destroy();
}
autoUpdater.quitAndInstall(true, true);
return { accepted: true, completed: true };
} catch (error: unknown) {
const message = formatErrorMessage(error);
Expand Down