File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 9090 <ui : NumberBox
9191 Width =" 160"
9292 Margin =" 0 0 8 0"
93+ IsEnabled =" {Binding SearchDelayEnabled}"
9394 Maximum =" 1000"
94- SmallChange =" 10"
9595 Minimum =" 0"
96- SpinButtonPlacementMode =" Compact" PlaceholderText =" {DynamicResource searchDelayPlaceHolder}"
96+ PlaceholderText =" {DynamicResource searchDelayPlaceHolder}"
97+ SmallChange =" 10"
98+ SpinButtonPlacementMode =" Compact"
9799 ToolTip =" {DynamicResource searchDelayToolTip}"
98- Value =" {Binding PluginSearchDelayTime, Mode=TwoWay}" >
99- </ui : NumberBox >
100+ Value =" {Binding PluginSearchDelayTime, Mode=TwoWay}" />
100101 </StackPanel >
101102
102103 <!-- Put OnOffControl after PriorityControl & SearchDelayControl so that it can display correctly -->
Original file line number Diff line number Diff line change 33using System . Windows ;
44using System . Windows . Controls ;
55using System . Windows . Media ;
6+ using CommunityToolkit . Mvvm . DependencyInjection ;
67using CommunityToolkit . Mvvm . Input ;
78using Flow . Launcher . Core . Plugin ;
89using Flow . Launcher . Infrastructure . Image ;
10+ using Flow . Launcher . Infrastructure . UserSettings ;
911using Flow . Launcher . Plugin ;
1012using Flow . Launcher . Resources . Controls ;
1113
1214namespace Flow . Launcher . ViewModel
1315{
1416 public partial class PluginViewModel : BaseModel
1517 {
18+ private static readonly Settings Settings = Ioc . Default . GetRequiredService < Settings > ( ) ;
19+
1620 private readonly PluginPair _pluginPair ;
1721 public PluginPair PluginPair
1822 {
@@ -148,6 +152,7 @@ public Control SettingControl
148152 App . API . GetTranslation ( "default" ) :
149153 App . API . GetTranslation ( $ "SearchDelayTime{ PluginPair . Metadata . SearchDelayTime } ") ;
150154 public Infrastructure . UserSettings . Plugin PluginSettingsObject { get ; init ; }
155+ public bool SearchDelayEnabled => Settings . SearchQueryResultsWithDelay ;
151156
152157 public void OnActionKeywordsChanged ( )
153158 {
You can’t perform that action at this time.
0 commit comments