fix: crash when using Ctrl to unselect active tab

This commit is contained in:
leo 2024-06-26 16:47:43 +08:00
parent d2e3b683f1
commit 1ce0d0f7bf
No known key found for this signature in database

View file

@ -91,6 +91,7 @@
<StackPanel x:Name="launcherTabsBar" Orientation="Horizontal" SizeChanged="UpdateScrollIndicator"> <StackPanel x:Name="launcherTabsBar" Orientation="Horizontal" SizeChanged="UpdateScrollIndicator">
<ListBox Classes="launcher_page_tabbar" <ListBox Classes="launcher_page_tabbar"
ItemsSource="{Binding Pages}" ItemsSource="{Binding Pages}"
SelectionMode="AlwaysSelected"
SelectedItem="{Binding ActivePage, Mode=TwoWay}"> SelectedItem="{Binding ActivePage, Mode=TwoWay}">
<ListBox.ItemsPanel> <ListBox.ItemsPanel>
<ItemsPanelTemplate> <ItemsPanelTemplate>