diff --git a/packages/desktop/src/window.ts b/packages/desktop/src/window.ts index 087339844..b7b58296e 100644 --- a/packages/desktop/src/window.ts +++ b/packages/desktop/src/window.ts @@ -79,6 +79,10 @@ export function createWindow() { e.preventDefault() win.hide() return + } else { + // For other platforms, allow the window to be closed + mainWindow = undefined; // Set the reference to mainWindow to undefined + win.destroy() // Quit the application } })