From 520ef3777f618dc143371d1278c7bc199551277c Mon Sep 17 00:00:00 2001 From: Hongtao Date: Sat, 4 Mar 2023 14:17:22 -0600 Subject: [PATCH 1/4] Remove Obsolete Property and use Status Property for Sorting --- .../SearchSource.cs | 3 +++ .../SettingsControl.xaml | 18 +++--------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs b/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs index caed3f16c..e489cb19f 100644 --- a/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs +++ b/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs @@ -35,6 +35,9 @@ namespace Flow.Launcher.Plugin.WebSearch } public string Url { get; set; } + + [JsonIgnore] + public bool Status => Enabled; public bool Enabled { get; set; } public SearchSource DeepCopy() diff --git a/Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml b/Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml index b9ca47e4f..a3e6dacc6 100644 --- a/Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml +++ b/Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml @@ -69,23 +69,11 @@ - - - - - - + Header="{DynamicResource flowlauncher_plugin_websearch_action_keyword}"/> - - - - - - + Header="{DynamicResource flowlauncher_plugin_websearch_title}"/> @@ -94,7 +82,7 @@