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

Persist window state (size, position) #452

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

jarne
Copy link
Contributor

@jarne jarne commented Oct 7, 2023

This PR implements issue #451 and adds code to persist the window state of the Electron application, including its size and position so it's starting at the same position and size when opening the application as it was closed. I also added some checks to reset both position or size to default if it's not inside the screen border's (e.g. when switching to a smaller screen).

@helloanoop helloanoop merged commit c222bf4 into usebruno:main Oct 7, 2023
1 check passed
@jarne jarne deleted the feature/persist-window-state branch October 8, 2023 09:03
@martinsefcik
Copy link
Contributor

@jarne this implementation is not working correctly in all cases. At least on Windows when window is maximezed then x and y values are stored with negative values and then during startup reset to undefined.

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

Successfully merging this pull request may close these issues.

None yet

3 participants