Skip to content

Commit

Permalink
Fix crash from closing and waiting on debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Jan 29, 2019
1 parent bbab90e commit 844f8f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/main/shared/windowStateKeeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ function windowStateKeeper(store) {

function track(win) {
window = win;
['resize', 'move', 'close'].forEach(event => {
['resize', 'move'].forEach(event => {
win.on(event, debounce(saveState, 500));
});
['close'].forEach(event => {
win.on(event, saveState);
});
}

setBounds();
Expand Down

0 comments on commit 844f8f7

Please sign in to comment.