Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 869c0aa

Browse files
committed
saveAppState needs to be called to perform the quit (was only missing from the lastWindowClosed case)
Unintentionally introduced with 40abc0c#diff-2018087f584c4398b5c3a23fc0e5f9dbR172 True needs to be passed, because the last known window state is saved, so receivedAllWindows is always false Fixes #8629 Auditors: @bridiver
1 parent 42b6293 commit 869c0aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ const initiateSessionStateSave = () => {
181181
// quit triggered by window-all-closed should save last window state
182182
if (lastWindowClosed && lastWindowState) {
183183
perWindowState.push(lastWindowState)
184+
saveAppState(true)
184185
} else if (BrowserWindow.getAllWindows().length > 0) {
185186
++requestId
186187
BrowserWindow.getAllWindows().forEach((win) => win.webContents.send(messages.REQUEST_WINDOW_STATE, requestId))

0 commit comments

Comments
 (0)