File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 91
91
Maximum =" 1000"
92
92
Minimum =" 0"
93
93
SpinButtonPlacementMode =" Inline"
94
- ToolTip =" {DynamicResource searchDelayToolTip}" />
94
+ ToolTip =" {DynamicResource searchDelayToolTip}"
95
+ Value =" {Binding PluginSearchDelayTime, Mode=TwoWay}" />
95
96
</StackPanel >
96
97
97
98
<!-- Put OnOffControl after PriorityControl & SearchDelayControl so that it can display correctly -->
Original file line number Diff line number Diff line change @@ -93,13 +93,23 @@ public int Priority
93
93
}
94
94
}
95
95
96
- public int ? PluginSearchDelayTime
96
+ public double PluginSearchDelayTime
97
97
{
98
- get => PluginPair . Metadata . SearchDelayTime ;
98
+ get => PluginPair . Metadata . SearchDelayTime == null ?
99
+ double . NaN :
100
+ PluginPair . Metadata . SearchDelayTime . Value ;
99
101
set
100
102
{
101
- PluginPair . Metadata . SearchDelayTime = value ;
102
- PluginSettingsObject . SearchDelayTime = value ;
103
+ if ( double . IsNaN ( value ) )
104
+ {
105
+ PluginPair . Metadata . SearchDelayTime = null ;
106
+ PluginSettingsObject . SearchDelayTime = null ;
107
+ }
108
+ else
109
+ {
110
+ PluginPair . Metadata . SearchDelayTime = ( int ) value ;
111
+ PluginSettingsObject . SearchDelayTime = ( int ) value ;
112
+ }
103
113
}
104
114
}
105
115
You can’t perform that action at this time.
0 commit comments