Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save the window state #15

Open
wotermelon opened this issue Oct 26, 2016 · 4 comments
Open

save the window state #15

wotermelon opened this issue Oct 26, 2016 · 4 comments

Comments

@wotermelon
Copy link

to save the window state when restart

@shrimpwagon
Copy link
Contributor

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

@wotermelon
Copy link
Author

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

@shrimpwagon
Copy link
Contributor

That looks pretty cool. Can you do it?

@dannyrb
Copy link

dannyrb commented Jun 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants