Skip to content

Commit

Permalink
Save window bounds after window resize (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitecrownclown authored and sindresorhus committed Aug 11, 2019
1 parent fe989d2 commit ccf0ab2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ function createMainWindow(): BrowserWindow {
}
});

win.on('resize', () => {
config.set('lastWindowState', win.getNormalBounds());
});

return win;
}

Expand Down

0 comments on commit ccf0ab2

Please sign in to comment.