Skip to content

Commit cc2df8d

Browse files
committed
Improve code quality
1 parent 09d8cef commit cc2df8d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Plugins/Flow.Launcher.Plugin.WebSearch/Settings.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ namespace Flow.Launcher.Plugin.WebSearch
77
{
88
public class Settings : BaseModel
99
{
10-
private bool enableSuggestion;
11-
1210
public Settings()
1311
{
1412
SelectedSuggestion = Suggestions[0];
@@ -193,13 +191,17 @@ public Settings()
193191
[JsonIgnore]
194192
public SearchSource SelectedSearchSource { get; set; }
195193

194+
private bool enableSuggestion;
196195
public bool EnableSuggestion
197196
{
198197
get => enableSuggestion;
199198
set
200199
{
201-
enableSuggestion = value;
202-
OnPropertyChanged(nameof(EnableSuggestion));
200+
if (enableSuggestion != value)
201+
{
202+
enableSuggestion = value;
203+
OnPropertyChanged(nameof(EnableSuggestion));
204+
}
203205
}
204206
}
205207

0 commit comments

Comments
 (0)