We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9067f24 commit cb20a2fCopy full SHA for cb20a2f
apps/desktop/src/main.ts
@@ -810,7 +810,7 @@ async function installDownloadedUpdate(): Promise<{ accepted: boolean; completed
810
clearUpdatePollTimer();
811
try {
812
await stopBackendAndWaitForExit();
813
- // Destroy all windows before launching the NSIS installer
+ // Destroy all windows before launching the NSIS installer to avoid the installer finding live windows it needs to close.
814
for (const win of BrowserWindow.getAllWindows()) {
815
win.destroy();
816
}
@@ -1392,7 +1392,7 @@ app
1392
});
1393
1394
app.on("window-all-closed", () => {
1395
- if (process.platform !== "darwin") {
+ if (process.platform !== "darwin" && !isQuitting) {
1396
app.quit();
1397
1398
0 commit comments