1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2026-02-04 02:43:32 +00:00

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

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

View File

@ -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;

View File

@ -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"