-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
restore last window bounds #324
base: main
Are you sure you want to change the base?
Conversation
@@ -52,7 +76,7 @@ const createTray = (window) => { | |||
{ | |||
label: 'Show', | |||
click: () => { | |||
win.maximize(); | |||
setWindowBounds(window); |
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.
I'm not sure what Tray() should be in MacOS because I see no menu with "Show" label anywhere. If anyone could test it on Windows and Linux it would be great.
@@ -66,7 +90,7 @@ const createTray = (window) => { | |||
]); | |||
|
|||
tray.on('click', () => { | |||
win.maximize(); | |||
setWindowBounds(window); |
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.
I'm not sure what Tray() should be in MacOS because I see no menu with "Show" label anywhere. If anyone could test it on Windows and Linux it would be great.
374a56c
to
b18db50
Compare
rebased |
b18db50
to
7e45b9a
Compare
rebased |
fixes #323
Saves the last window size and position and restores it on the next run.
It uses
electron-store
to store the bounds in~/Application Support/better-chatpgt/config.json
(for Mac, not sure where it saves in Linux and Windows)