Fix frame size not persisting across restarts#41
Fix frame size not persisting across restarts#41elvistranhere wants to merge 1 commit intolcoutodemos:mainfrom
Conversation
The expandedUI (full width) setting was saved to localStorage correctly when toggled, but on app launch it was unconditionally overwritten to false before the store initialized. Remove the override so the saved preference is respected. Fixes lcoutodemos#30
There was a problem hiding this comment.
Pull request overview
Fixes UI width preference persistence by ensuring the saved expandedUI setting from localStorage is no longer overwritten during theme store initialization, addressing issue #30.
Changes:
- Stop forcing
expandedUI: falseat startup so the stored “Full width” preference is respected after restart. - Rely solely on
loadSettings()for initial theme store values.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot review |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
falsebefore the store initializedexpandedUI: falseoverride intheme.tsso the saved preference is respected on restartWhat changed
src/renderer/theme.ts:Test plan
npm run buildpasses with zero errorsFixes #30