Skip to content

Commit 72269db

Browse files
committed
Enable TwoWay binding for MaxSuggestions NumberBox
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.
1 parent cb60492 commit 72269db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
SpinButtonPlacementMode="Compact"
165165
ValidationMode="InvalidInputOverwritten"
166166
ValueChanged="NumberBox_ValueChanged"
167-
Value="{Binding Settings.MaxSuggestions, Mode=OneWay}" />
167+
Value="{Binding Settings.MaxSuggestions, Mode=TwoWay}" />
168168
</StackPanel>
169169
<CheckBox
170170
Name="EnableSuggestion"

0 commit comments

Comments
 (0)