electron-window-manager icon indicating copy to clipboard operation
electron-window-manager copied to clipboard

save the window state

Open wotermelon opened this issue 8 years ago • 4 comments

to save the window state when restart

wotermelon avatar Oct 26 '16 01:10 wotermelon

Can you elaborate a bit? Do you mean open in same position and size?

shrimpwagon avatar Oct 26 '16 01:10 shrimpwagon

yeah.like this May be can provide some options on createNew(...) or open(...),so we don't need to use another lib.

wotermelon avatar Oct 26 '16 01:10 wotermelon

That looks pretty cool. Can you do it?

shrimpwagon avatar Oct 26 '16 01:10 shrimpwagon

We've accomplished this in our project by listening for BrowserWindow events and updating a "LastUsedConfiguration" when those events fire: move, resize, etc.

When the app starts up, it uses that config to restore the previous window state.

dannyrb avatar Jun 29 '18 00:06 dannyrb