Code quality & Fix build issue

This commit is contained in:
Jack251970 2025-03-26 15:44:59 +08:00
parent 3f0641a583
commit f2e5006fe5
3 changed files with 6 additions and 11 deletions

View file

@ -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
/// </summary>
public partial class PluginsManagerSettings
{
private readonly SettingsViewModel viewModel;
internal PluginsManagerSettings(SettingsViewModel viewModel)
{
InitializeComponent();
this.viewModel = viewModel;
this.DataContext = viewModel;
DataContext = viewModel;
}
}
}

View file

@ -13,6 +13,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<UseWPF>true</UseWPF>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

View file

@ -5,14 +5,13 @@ namespace Flow.Launcher.Plugin.ProcessKiller.Views;
public partial class SettingsControl : UserControl
{
private readonly SettingsViewModel _viewModel;
/// <summary>
/// Interaction logic for SettingsControl.xaml
/// </summary>
public SettingsControl(SettingsViewModel viewModel)
{
InitializeComponent();
_viewModel = viewModel;
DataContext = viewModel;
}
}