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
|
public class Settings : BaseModel
|
||||||
{
|
{
|
||||||
private bool enableSuggestion;
|
|
||||||
|
|
||||||
public Settings()
|
public Settings()
|
||||||
{
|
{
|
||||||
SelectedSuggestion = Suggestions[0];
|
SelectedSuggestion = Suggestions[0];
|
||||||
|
|
@ -193,13 +191,17 @@ namespace Flow.Launcher.Plugin.WebSearch
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public SearchSource SelectedSearchSource { get; set; }
|
public SearchSource SelectedSearchSource { get; set; }
|
||||||
|
|
||||||
|
private bool enableSuggestion;
|
||||||
public bool EnableSuggestion
|
public bool EnableSuggestion
|
||||||
{
|
{
|
||||||
get => enableSuggestion;
|
get => enableSuggestion;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
enableSuggestion = value;
|
if (enableSuggestion != value)
|
||||||
OnPropertyChanged(nameof(EnableSuggestion));
|
{
|
||||||
|
enableSuggestion = value;
|
||||||
|
OnPropertyChanged(nameof(EnableSuggestion));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue