Skip to content

Commit 85b9bca

Browse files
committed
Hide toolbar on homepage
1 parent 1af4f28 commit 85b9bca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Files.App/ViewModels/HomeViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public sealed class HomeViewModel : ObservableObject, IDisposable
1111
// Dependency injections
1212

1313
private IUserSettingsService UserSettingsService { get; } = Ioc.Default.GetRequiredService<IUserSettingsService>();
14+
private IAppearanceSettingsService AppearanceSettingsService { get; } = Ioc.Default.GetRequiredService<IAppearanceSettingsService>();
1415

1516
// Properties
1617

@@ -179,6 +180,7 @@ public void RemoveWidget<TWidget>() where TWidget : IWidgetViewModel
179180
private void ExecuteHomePageLoadedCommand(RoutedEventArgs? e)
180181
{
181182
ReloadWidgets();
183+
AppearanceSettingsService.ShowToolbar = false;
182184
}
183185

184186
// Disposer
@@ -189,6 +191,7 @@ public void Dispose()
189191
WidgetItems[i].Dispose();
190192

191193
WidgetItems.Clear();
194+
AppearanceSettingsService.ShowToolbar = true;
192195
}
193196
}
194197
}

0 commit comments

Comments
 (0)