Enable TwoWay binding for MaxSuggestions NumberBox#4279
Conversation
Changed NumberBox binding for Settings.MaxSuggestions from OneWay to TwoWay, allowing user input in the UI to update the underlying setting. This ensures changes made by users are saved back to the settings model.
|
🥷 Code experts: jjw24 jjw24, Jack251970 have 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change modifies a single XAML binding in the WebSearch plugin's settings control, switching the NumberBox binding mode for MaxSuggestions from OneWay to TwoWay. This enables bidirectional data flow, allowing UI changes to propagate back to the settings model. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 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 |
There was a problem hiding this comment.
Pull request overview
Updates the WebSearch plugin settings UI so the MaxSuggestions NumberBox writes user-entered values back to the underlying Settings.MaxSuggestions property, ensuring the setting can be persisted when changed via the UI.
Changes:
- Switched the
MaxSuggestionsNumberBoxValuebinding fromOneWaytoTwoWay.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Enable TwoWay binding for MaxSuggestions NumberBox
Follow on with #4198
Changed NumberBox binding for Settings.MaxSuggestions from OneWay to TwoWay, allowing user input in the UI to update the underlying setting. This ensures changes made by users are saved back to the settings model.
Summary by cubic
Fixes the MaxSuggestions setting not persisting when edited in the Web Search settings. In SettingsControl.xaml, switches the NumberBox Value binding from OneWay to TwoWay so user input updates Settings.MaxSuggestions; closes the bug where changes were not saved.
Written for commit 72269db. Summary will update on new commits.