fix(desktop): persist zoom level across app restarts#1033
Conversation
Add zoomLevel to WindowState to persist user's zoom preference. The zoom level is now saved when the window closes and restored when the app starts.
📝 WalkthroughWalkthroughAdds support for persisting and restoring window zoom level. The WindowState interface includes an optional zoomLevel property with validation logic accepting finite numbers. Window load/close events now capture and restore the zoom level alongside other window state. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
zoomLeveltoWindowStateinterface to persist user's zoom preferenceAddresses user-reported issue where zoom level would reset.
Test plan
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.