File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Files.App/Actions/Show Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ namespace Files.App.Actions
66 internal sealed class ToggleSidebarAction : ObservableObject , IToggleAction
77 {
88 private readonly IAppearanceSettingsService AppearanceSettingsService = Ioc . Default . GetRequiredService < IAppearanceSettingsService > ( ) ;
9+ private readonly SidebarViewModel SidebarViewModel = Ioc . Default . GetRequiredService < SidebarViewModel > ( ) ;
910
1011 public string Label
1112 => "ToggleSidebar" . GetLocalizedResource ( ) ;
@@ -27,7 +28,7 @@ public ToggleSidebarAction()
2728 public Task ExecuteAsync ( object ? parameter = null )
2829 {
2930 AppearanceSettingsService . IsSidebarOpen = ! IsOn ;
30-
31+ SidebarViewModel . UpdateTabControlMargin ( ) ;
3132 return Task . CompletedTask ;
3233 }
3334
You can’t perform that action at this time.
0 commit comments