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:
parent
14c301a37e
commit
961e8e709a
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user