Fix double click on header

This commit is contained in:
Vic 2022-12-17 22:27:36 +08:00
parent 1d77d45fe2
commit bf91bd2492

View file

@ -395,8 +395,11 @@ namespace Flow.Launcher.Plugin.Program.Views
private void programSourceView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
var selectedProgramSource = programSourceView.SelectedItem as ProgramSource;
EditProgramSource(selectedProgramSource);
if (((FrameworkElement)e.OriginalSource).DataContext is ProgramSource)
{
var selectedProgramSource = programSourceView.SelectedItem as ProgramSource;
EditProgramSource(selectedProgramSource);
}
}
private bool IsAllItemsUserAdded(List<ProgramSource> items)