From f2e5006fe54fa0839f7665a7c1f1640ed821b6ec Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Wed, 26 Mar 2025 15:44:59 +0800
Subject: [PATCH] Code quality & Fix build issue
---
.../Views/PluginsManagerSettings.xaml.cs | 9 ++-------
.../Flow.Launcher.Plugin.ProcessKiller.csproj | 1 +
.../Views/SettingsControl.xaml.cs | 7 +++----
3 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/Plugins/Flow.Launcher.Plugin.PluginsManager/Views/PluginsManagerSettings.xaml.cs b/Plugins/Flow.Launcher.Plugin.PluginsManager/Views/PluginsManagerSettings.xaml.cs
index 26668cc05..3b0ff0743 100644
--- a/Plugins/Flow.Launcher.Plugin.PluginsManager/Views/PluginsManagerSettings.xaml.cs
+++ b/Plugins/Flow.Launcher.Plugin.PluginsManager/Views/PluginsManagerSettings.xaml.cs
@@ -1,5 +1,4 @@
-
-using Flow.Launcher.Plugin.PluginsManager.ViewModels;
+using Flow.Launcher.Plugin.PluginsManager.ViewModels;
namespace Flow.Launcher.Plugin.PluginsManager.Views
{
@@ -8,15 +7,11 @@ namespace Flow.Launcher.Plugin.PluginsManager.Views
///
public partial class PluginsManagerSettings
{
- private readonly SettingsViewModel viewModel;
-
internal PluginsManagerSettings(SettingsViewModel viewModel)
{
InitializeComponent();
- this.viewModel = viewModel;
-
- this.DataContext = viewModel;
+ DataContext = viewModel;
}
}
}
diff --git a/Plugins/Flow.Launcher.Plugin.ProcessKiller/Flow.Launcher.Plugin.ProcessKiller.csproj b/Plugins/Flow.Launcher.Plugin.ProcessKiller/Flow.Launcher.Plugin.ProcessKiller.csproj
index c4864dc57..0c501b2d9 100644
--- a/Plugins/Flow.Launcher.Plugin.ProcessKiller/Flow.Launcher.Plugin.ProcessKiller.csproj
+++ b/Plugins/Flow.Launcher.Plugin.ProcessKiller/Flow.Launcher.Plugin.ProcessKiller.csproj
@@ -13,6 +13,7 @@
false
false
en
+ true
diff --git a/Plugins/Flow.Launcher.Plugin.ProcessKiller/Views/SettingsControl.xaml.cs b/Plugins/Flow.Launcher.Plugin.ProcessKiller/Views/SettingsControl.xaml.cs
index ad7229417..a066ab6a9 100644
--- a/Plugins/Flow.Launcher.Plugin.ProcessKiller/Views/SettingsControl.xaml.cs
+++ b/Plugins/Flow.Launcher.Plugin.ProcessKiller/Views/SettingsControl.xaml.cs
@@ -5,14 +5,13 @@ namespace Flow.Launcher.Plugin.ProcessKiller.Views;
public partial class SettingsControl : UserControl
{
- private readonly SettingsViewModel _viewModel;
-
+ ///
+ /// Interaction logic for SettingsControl.xaml
+ ///
public SettingsControl(SettingsViewModel viewModel)
{
InitializeComponent();
- _viewModel = viewModel;
-
DataContext = viewModel;
}
}