Skip to content

Commit bf91bd2

Browse files
Fix double click on header
1 parent 1d77d45 commit bf91bd2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,11 @@ private void programSourceView_SelectionChanged(object sender, SelectionChangedE
395395

396396
private void programSourceView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
397397
{
398-
var selectedProgramSource = programSourceView.SelectedItem as ProgramSource;
399-
EditProgramSource(selectedProgramSource);
398+
if (((FrameworkElement)e.OriginalSource).DataContext is ProgramSource)
399+
{
400+
var selectedProgramSource = programSourceView.SelectedItem as ProgramSource;
401+
EditProgramSource(selectedProgramSource);
402+
}
400403
}
401404

402405
private bool IsAllItemsUserAdded(List<ProgramSource> items)

0 commit comments

Comments
 (0)