mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code quality
This commit is contained in:
parent
09d8cefcef
commit
cc2df8d680
1 changed files with 6 additions and 4 deletions
|
|
@ -7,8 +7,6 @@ namespace Flow.Launcher.Plugin.WebSearch
|
|||
{
|
||||
public class Settings : BaseModel
|
||||
{
|
||||
private bool enableSuggestion;
|
||||
|
||||
public Settings()
|
||||
{
|
||||
SelectedSuggestion = Suggestions[0];
|
||||
|
|
@ -193,13 +191,17 @@ namespace Flow.Launcher.Plugin.WebSearch
|
|||
[JsonIgnore]
|
||||
public SearchSource SelectedSearchSource { get; set; }
|
||||
|
||||
private bool enableSuggestion;
|
||||
public bool EnableSuggestion
|
||||
{
|
||||
get => enableSuggestion;
|
||||
set
|
||||
{
|
||||
enableSuggestion = value;
|
||||
OnPropertyChanged(nameof(EnableSuggestion));
|
||||
if (enableSuggestion != value)
|
||||
{
|
||||
enableSuggestion = value;
|
||||
OnPropertyChanged(nameof(EnableSuggestion));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue