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 90
90
<ui : NumberBox
91
91
Width =" 160"
92
92
Margin =" 0 0 8 0"
93
+ IsEnabled =" {Binding SearchDelayEnabled}"
93
94
Maximum =" 1000"
94
- SmallChange =" 10"
95
95
Minimum =" 0"
96
- SpinButtonPlacementMode =" Compact" PlaceholderText =" {DynamicResource searchDelayPlaceHolder}"
96
+ PlaceholderText =" {DynamicResource searchDelayPlaceHolder}"
97
+ SmallChange =" 10"
98
+ SpinButtonPlacementMode =" Compact"
97
99
ToolTip =" {DynamicResource searchDelayToolTip}"
98
- Value =" {Binding PluginSearchDelayTime, Mode=TwoWay}" >
99
- </ui : NumberBox >
100
+ Value =" {Binding PluginSearchDelayTime, Mode=TwoWay}" />
100
101
</StackPanel >
101
102
102
103
<!-- Put OnOffControl after PriorityControl & SearchDelayControl so that it can display correctly -->
Original file line number Diff line number Diff line change 3
3
using System . Windows ;
4
4
using System . Windows . Controls ;
5
5
using System . Windows . Media ;
6
+ using CommunityToolkit . Mvvm . DependencyInjection ;
6
7
using CommunityToolkit . Mvvm . Input ;
7
8
using Flow . Launcher . Core . Plugin ;
8
9
using Flow . Launcher . Infrastructure . Image ;
10
+ using Flow . Launcher . Infrastructure . UserSettings ;
9
11
using Flow . Launcher . Plugin ;
10
12
using Flow . Launcher . Resources . Controls ;
11
13
12
14
namespace Flow . Launcher . ViewModel
13
15
{
14
16
public partial class PluginViewModel : BaseModel
15
17
{
18
+ private static readonly Settings Settings = Ioc . Default . GetRequiredService < Settings > ( ) ;
19
+
16
20
private readonly PluginPair _pluginPair ;
17
21
public PluginPair PluginPair
18
22
{
@@ -148,6 +152,7 @@ public Control SettingControl
148
152
App . API . GetTranslation ( "default" ) :
149
153
App . API . GetTranslation ( $ "SearchDelayTime{ PluginPair . Metadata . SearchDelayTime } ") ;
150
154
public Infrastructure . UserSettings . Plugin PluginSettingsObject { get ; init ; }
155
+ public bool SearchDelayEnabled => Settings . SearchQueryResultsWithDelay ;
151
156
152
157
public void OnActionKeywordsChanged ( )
153
158
{
You can’t perform that action at this time.
0 commit comments