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

Feature - remember window bounds on window.show() #992

Closed

Conversation

CRdeGraaf
Copy link

Remembers the window size and position for devmode and production respectively. Uses local user storage like appdata to persist this.

It fixes an important issue for me, which is windows constantly jumping around on every file save, causing frustration, especially on multi-monitor setups.

devmode is seperated from production as many people will keep a different window width when devtools are open.

it is a small QoL feature, but still requires electron-store or similar new util dependancy. I don't know if that is a deal-breaker for your templating philosophy, but i felt like offering the contribution nonetheless.

Thanks for the nice boilerplate.

Rutger added 2 commits March 14, 2024 12:54
opinionated implementation of storing window size and position in appdata using electron-store. personally a hard-requirement for development with any HMR + electron to prevent windows jumping all over the place after every file save
@cawa-93
Copy link
Owner

cawa-93 commented May 23, 2024

This may be a useful feature, but I want to keep this template as less dependencies as possible. So you can re-implement this feature without third-paty dependencies and open new PR. Or, post your showcase into the discussion section.

@cawa-93 cawa-93 closed this May 23, 2024
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

2 participants