Fix settings window is minimized when re-opened.#4341
Conversation
|
🥷 Code experts: Jack251970 Jack251970 has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
|
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
📝 WalkthroughWalkthroughModifies window state persistence in SettingWindow.xaml.cs to prevent saving and restoring minimized window states. The window state is now only persisted when loaded and not minimized, with minimized states converted to normal when applying saved settings. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
LGTM👍 |
|
Trying to let Mr.Copilot to fix another related issue. Let's see. |
* Fix settings window is minimized when re-opened * Don't save minimized state
Currently if settings window is closed when minimized, it stays minimized the next time you open it. It's a bad UX design.
Summary by cubic
Prevents the Settings window from reopening minimized. We stop saving the minimized state and normalize it to Normal on reopen for better UX.
Window_StateChangedno longer savesWindowState.Minimizedto_settings.SettingWindowState.UpdatePositionAndStateconverts a savedMinimizedstate toNormalwhen reopening.Written for commit 121084f. Summary will update on new commits.