File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Plugins/Flow.Launcher.Plugin.WebSearch Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ namespace Flow.Launcher.Plugin.WebSearch
7
7
{
8
8
public class Settings : BaseModel
9
9
{
10
+ private bool enableSuggestion ;
11
+
10
12
public Settings ( )
11
13
{
12
14
SelectedSuggestion = Suggestions [ 0 ] ;
@@ -191,7 +193,15 @@ public Settings()
191
193
[ JsonIgnore ]
192
194
public SearchSource SelectedSearchSource { get ; set ; }
193
195
194
- public bool EnableSuggestion { get ; set ; }
196
+ public bool EnableSuggestion
197
+ {
198
+ get => enableSuggestion ;
199
+ set
200
+ {
201
+ enableSuggestion = value ;
202
+ OnPropertyChanged ( nameof ( EnableSuggestion ) ) ;
203
+ }
204
+ }
195
205
196
206
[ JsonIgnore ]
197
207
public SuggestionSource [ ] Suggestions { get ; set ; } = {
Original file line number Diff line number Diff line change 138
138
Margin =" {StaticResource SettingPanelItemLeftMargin}"
139
139
VerticalAlignment =" Center"
140
140
FontSize =" 11"
141
- IsEnabled =" {Binding ElementName= EnableSuggestion, Path=IsChecked }"
141
+ IsEnabled =" {Binding Settings. EnableSuggestion}"
142
142
ItemsSource =" {Binding Settings.Suggestions}"
143
143
SelectedItem =" {Binding Settings.SelectedSuggestion}" />
144
144
<CheckBox
149
149
Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion}"
150
150
IsChecked =" {Binding Settings.EnableSuggestion}" />
151
151
</StackPanel >
152
- <!-- Not sure why binding IsEnabled directly to Settings.EnableWebSearchSuggestion is not working -->
153
152
</DockPanel >
154
153
</Grid >
155
154
</UserControl >
Original file line number Diff line number Diff line change 141
141
"Enabled" : true
142
142
}
143
143
],
144
- "EnableWebSearchSuggestion " : false ,
145
- "WebSearchSuggestionSource " : " Google"
144
+ "EnableSuggestion " : false ,
145
+ "Suggestion " : " Google"
146
146
}
You can’t perform that action at this time.
0 commit comments