-
Notifications
You must be signed in to change notification settings - Fork 91
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
window state manager #608
window state manager #608
Conversation
Merged electron-window-state-manager. Providing store/restore of window position.
@stweyel i've adjusted the window, then closed the app by clicking "x", then reopened it agian, but it doesn't seem to save the window state? |
hmm... that's strange. Working fine here on MacOS and Windows10. What are your system specs? |
@stweyel what is the filepath of where the |
@angle943 at first look it should be in Library/Application Support/. But it's not there (at least i can't see it :-) ). I'll check where else it could be saved. |
@angle943 found it! It's in the users library folder: |
nope, i don't see windowStates.json there :/ I have MacOS Big Sur |
Then for now i've no idea what's going on. It's perfectly running here on BigSur and i can't reproduce the fail. Well in fact there isn't very much what could fail. Probably also no write permission issue because without that the account manager doesn't even start. |
@thesanjeevsharma @jamessspanggg @RajputUsman could you give this a try? |
@angle943 since nobody replied... |
Sorry for the later response! I missed it. Yes the app you provided is working fine with the window size and position restored 👍🏻 using macOS Big Sur 11.2.3 |
@@ -123,6 +123,7 @@ | |||
"dependencies": { | |||
"@thenewboston/ui": "^0.1.5", | |||
"@thenewboston/utils": "^1.0.0", | |||
"app-root-path": "3.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes app-root-path is needed by window-state-manager. Though it's installed as an own dependency i got errors and therefore added it to the main tree.
No prob. Glad it's working! Shall i open a new PR? |
Why so? I think we can keep the PR |
content was missing in initial PR
ok we'll merge it in |
#512
Merged electron-window-state-manager package.
Providing store/restore of window position.