File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Flow.Launcher/SettingPages/Views Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 122122 FontSize =" 14"
123123 ItemContainerStyle =" {StaticResource PluginList}"
124124 ItemsSource =" {Binding Source={StaticResource PluginCollectionView}}"
125+ Loaded =" PluginListBox_Loaded"
125126 ScrollViewer.CanContentScroll=" False"
126127 ScrollViewer.HorizontalScrollBarVisibility=" Disabled"
127128 SnapsToDevicePixels =" True"
Original file line number Diff line number Diff line change 11using System . ComponentModel ;
2+ using System . Windows ;
3+ using System . Windows . Controls ;
24using System . Windows . Data ;
35using System . Windows . Input ;
46using System . Windows . Navigation ;
@@ -33,6 +35,14 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
3335 base . OnNavigatedTo ( e ) ;
3436 }
3537
38+ private void PluginListBox_Loaded ( object sender , RoutedEventArgs e )
39+ {
40+ // After list is loaded, we need to clear selection to make sure all items can be mouse hovered
41+ // because the selected item cannot be hovered.
42+ if ( sender is not ListBox listBox ) return ;
43+ listBox . SelectedIndex = - 1 ;
44+ }
45+
3646 private void ViewModel_PropertyChanged ( object sender , PropertyChangedEventArgs e )
3747 {
3848 if ( e . PropertyName == nameof ( SettingsPanePluginsViewModel . FilterText ) )
You can’t perform that action at this time.
0 commit comments