Skip to content

Commit 7aefc87

Browse files
yaira20x5bfa
andauthored
Update src/Files.App/Actions/Show/ToggleSidebarAction.cs
Co-authored-by: 0x5BFA <[email protected]>
1 parent 95c2189 commit 7aefc87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Files.App/Actions/Show/ToggleSidebarAction.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ public string Description
1717
public HotKey HotKey
1818
=> new(Keys.S, KeyModifiers.CtrlAlt);
1919

20-
public bool IsOn
21-
=> AppearanceSettingsService.IsSidebarOpen;
20+
public bool IsOn =>
21+
SidebarViewModel.SidebarDisplayMode is SidebarDisplayMode.Expanded
22+
? true
23+
: false;
2224

2325
public ToggleSidebarAction()
2426
{

0 commit comments

Comments
 (0)