From 94a5c5dcb7aea3cc1674bdf63d15df7f2cb0c23c Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 30 Apr 2025 10:45:09 +0800 Subject: [PATCH 1/2] Change function name to suppress warning --- Flow.Launcher/ActionKeywords.xaml.cs | 2 +- Flow.Launcher/ViewModel/PluginViewModel.cs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Flow.Launcher/ActionKeywords.xaml.cs b/Flow.Launcher/ActionKeywords.xaml.cs index ad24f2a761f..9420b4c380e 100644 --- a/Flow.Launcher/ActionKeywords.xaml.cs +++ b/Flow.Launcher/ActionKeywords.xaml.cs @@ -80,7 +80,7 @@ private void ReplaceActionKeyword(string id, IReadOnlyList removedAction } // Update action keywords text and close window - _pluginViewModel.OnActionKeywordsChanged(); + _pluginViewModel.OnActionKeywordsTextChanged(); Close(); } } diff --git a/Flow.Launcher/ViewModel/PluginViewModel.cs b/Flow.Launcher/ViewModel/PluginViewModel.cs index 8312806fb58..64a7f3db84e 100644 --- a/Flow.Launcher/ViewModel/PluginViewModel.cs +++ b/Flow.Launcher/ViewModel/PluginViewModel.cs @@ -155,16 +155,11 @@ public Control SettingControl public bool SearchDelayEnabled => Settings.SearchQueryResultsWithDelay; public string DefaultSearchDelay => Settings.SearchDelayTime.ToString(); - public void OnActionKeywordsChanged() + public void OnActionKeywordsTextChanged() { OnPropertyChanged(nameof(ActionKeywordsText)); } - public void OnSearchDelayTimeChanged() - { - OnPropertyChanged(nameof(SearchDelayTimeText)); - } - [RelayCommand] private void OpenPluginDirectory() { From 6b9a710145c5e4022e3b977ad31b3533dbef4148 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 30 Apr 2025 10:45:18 +0800 Subject: [PATCH 2/2] Set private assets all for PropertyChanged.Fody --- .../Flow.Launcher.Infrastructure.csproj | 4 +++- Flow.Launcher.Plugin/Flow.Launcher.Plugin.csproj | 4 +++- Flow.Launcher/Flow.Launcher.csproj | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj b/Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj index f02b2297f64..31547200b23 100644 --- a/Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj +++ b/Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj @@ -66,7 +66,9 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + + all + diff --git a/Flow.Launcher.Plugin/Flow.Launcher.Plugin.csproj b/Flow.Launcher.Plugin/Flow.Launcher.Plugin.csproj index 1472813b8a5..ce3b7ab1a90 100644 --- a/Flow.Launcher.Plugin/Flow.Launcher.Plugin.csproj +++ b/Flow.Launcher.Plugin/Flow.Launcher.Plugin.csproj @@ -76,7 +76,9 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + + all + diff --git a/Flow.Launcher/Flow.Launcher.csproj b/Flow.Launcher/Flow.Launcher.csproj index 91cab9fa0ad..8d43eff9870 100644 --- a/Flow.Launcher/Flow.Launcher.csproj +++ b/Flow.Launcher/Flow.Launcher.csproj @@ -98,7 +98,9 @@ - + + all +