From c33fae959fec36afa426ea3bd4c6247ea3161d8e Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Tue, 8 Apr 2025 21:04:04 +0800 Subject: [PATCH] Change default search delay time to value --- Flow.Launcher/Languages/en.xaml | 1 - Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml | 2 +- Flow.Launcher/ViewModel/PluginViewModel.cs | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 7e5a554a9..609859d0d 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -111,7 +111,6 @@ Adds a short delay while typing to reduce UI flicker and result load. Recommended if your typing speed is average. Default Search Delay Time Wait time before showing results after typing stops. Higher values wait longer. (ms) - Default Search Plugin diff --git a/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml b/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml index 4a89d811f..231036244 100644 --- a/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml +++ b/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml @@ -93,7 +93,7 @@ IsEnabled="{Binding SearchDelayEnabled}" Maximum="1000" Minimum="0" - PlaceholderText="{DynamicResource searchDelayPlaceHolder}" + PlaceholderText="{Binding DefaultSearchDelay}" SmallChange="10" SpinButtonPlacementMode="Compact" ToolTip="{DynamicResource searchDelayToolTip}" diff --git a/Flow.Launcher/ViewModel/PluginViewModel.cs b/Flow.Launcher/ViewModel/PluginViewModel.cs index 5f19459c9..da0ed70fa 100644 --- a/Flow.Launcher/ViewModel/PluginViewModel.cs +++ b/Flow.Launcher/ViewModel/PluginViewModel.cs @@ -153,6 +153,7 @@ namespace Flow.Launcher.ViewModel App.API.GetTranslation($"SearchDelayTime{PluginPair.Metadata.SearchDelayTime}"); public Infrastructure.UserSettings.Plugin PluginSettingsObject{ get; init; } public bool SearchDelayEnabled => Settings.SearchQueryResultsWithDelay; + public string DefaultSearchDelay => Settings.SearchDelayTime.ToString(); public void OnActionKeywordsChanged() {