Menu - Don't collapse workshop menu item when navigating to it from a submenu item

This commit is contained in:
Robert committed 2026-01-01 16:20:48 +01:00
1 parent 14c301a37e
commit 961e8e709a
2 files changed
+4 -1

No files matched your search

@@ -47,7 +47,10 @@ public partial class SidebarScreenViewModel : ViewModelBase
public void ExpandIfRequired(SidebarScreenViewModel selected) public void ExpandIfRequired(SidebarScreenViewModel selected)
{ {
if (selected == this) if (selected == this)
{
IsExpanded = true;
return; return;
}
if (Screens.Contains(selected)) if (Screens.Contains(selected))
IsExpanded = true; IsExpanded = true;
@@ -44,7 +44,7 @@
Background="Transparent" Background="Transparent"
PointerPressed="Entry_OnPointerPressed"> PointerPressed="Entry_OnPointerPressed">
<!-- Icon --> <!-- Icon -->
<Border CornerRadius="3" <Border CornerRadius="2"
VerticalAlignment="Center" VerticalAlignment="Center"
Width="18" Width="18"
Height="18" Height="18"