diff --git a/app/index.js b/app/index.js index 91976ab5f9..a7534ee1b2 100644 --- a/app/index.js +++ b/app/index.js @@ -181,6 +181,7 @@ const initiateSessionStateSave = () => { // quit triggered by window-all-closed should save last window state if (lastWindowClosed && lastWindowState) { perWindowState.push(lastWindowState) + saveAppState(true) } else if (BrowserWindow.getAllWindows().length > 0) { ++requestId BrowserWindow.getAllWindows().forEach((win) => win.webContents.send(messages.REQUEST_WINDOW_STATE, requestId))