Improve code quality

This commit is contained in:
Jack251970 2025-08-12 17:31:26 +08:00
parent 09d8cefcef
commit cc2df8d680

View file

@ -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));
}
}
}