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 122
122
FontSize =" 14"
123
123
ItemContainerStyle =" {StaticResource PluginList}"
124
124
ItemsSource =" {Binding Source={StaticResource PluginCollectionView}}"
125
+ Loaded =" PluginListBox_Loaded"
125
126
ScrollViewer.CanContentScroll=" False"
126
127
ScrollViewer.HorizontalScrollBarVisibility=" Disabled"
127
128
SnapsToDevicePixels =" True"
Original file line number Diff line number Diff line change 1
1
using System . ComponentModel ;
2
+ using System . Windows ;
3
+ using System . Windows . Controls ;
2
4
using System . Windows . Data ;
3
5
using System . Windows . Input ;
4
6
using System . Windows . Navigation ;
@@ -33,6 +35,14 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
33
35
base . OnNavigatedTo ( e ) ;
34
36
}
35
37
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
+
36
46
private void ViewModel_PropertyChanged ( object sender , PropertyChangedEventArgs e )
37
47
{
38
48
if ( e . PropertyName == nameof ( SettingsPanePluginsViewModel . FilterText ) )
You can’t perform that action at this time.
0 commit comments