minor refactor

This commit is contained in:
Vic 2022-11-04 14:57:57 +08:00
parent 5f6bcdef6e
commit 0079a882be
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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)