From b181e0f7a422fd8506601286c2f51e99be0ed16d Mon Sep 17 00:00:00 2001 From: Ishmaeel Date: Fri, 9 Aug 2024 00:06:57 +1000 Subject: [PATCH] Update min to 100, remove redundant minmax, add binding delay --- .../ViewModels/SettingsViewModel.cs | 2 +- .../Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs index 1b8515107..662425492 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs @@ -530,7 +530,7 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels get => Settings.MaxResult; set { - Settings.MaxResult = Math.Clamp(value, 0, 10000); + Settings.MaxResult = Math.Clamp(value, 100, 10000); OnPropertyChanged(); } } diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml index fccbc011b..2412df15e 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml @@ -360,15 +360,13 @@ Grid.Row="4" Grid.Column="1" MinWidth="350" - Maximum="10000" - Minimum="0" Margin="0,9,0,6" HorizontalAlignment="Left" VerticalAlignment="Center" CornerRadius="4" SmallChange="10" SpinButtonPlacementMode="Inline" - Value="{Binding MaxResult}" + Value="{Binding MaxResult, Delay=100}" ToolTip="{DynamicResource plugin_explorer_Maximum_Results_Tooltip}"/>