From 0079a882be059e9b6f3856fe74b5680230437d84 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 4 Nov 2022 14:57:57 +0800 Subject: [PATCH] minor refactor --- Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml.cs | 2 +- .../Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml.cs b/Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml.cs index c598cc543..e88c9b988 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml.cs @@ -27,7 +27,7 @@ namespace Flow.Launcher.Plugin.Program btnAdd.Content = _context.API.GetTranslation("flowlauncher_plugin_program_add"); } - public AddProgramSource(PluginInitContext context, ProgramSource source, Settings settings) + public AddProgramSource(PluginInitContext context, Settings settings, ProgramSource source) { InitializeComponent(); _context = context; diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs index 3daf1939f..175cb06a6 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs @@ -160,7 +160,7 @@ namespace Flow.Launcher.Plugin.Program.Views } else { - var add = new AddProgramSource(context, selectedProgramSource, _settings); + var add = new AddProgramSource(context, _settings, selectedProgramSource); if (add.ShowDialog() ?? false) { if (selectedProgramSource.Enabled)