Skip to content

Commit 3e55b2d

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public ToggleSidebarAction()
2929

3030
public Task ExecuteAsync(object? parameter = null)
3131
{
32-
AppearanceSettingsService.IsSidebarOpen = !IsOn;
33-
SidebarViewModel.UpdateTabControlMargin();
32+
SidebarViewModel.SidebarDisplayMode = IsOn
33+
? SidebarDisplayMode.Expanded
34+
: SidebarDisplayMode.Compact;
3435
return Task.CompletedTask;
3536
}
3637

0 commit comments

Comments
 (0)