diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs index 163178782..4b63d38a5 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs @@ -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 items)