mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
Update src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/AppearancePage.xaml.cs
Co-authored-by: Jiří Polášek <me@jiripolasek.com>
This commit is contained in:
@@ -29,7 +29,7 @@ public sealed partial class AppearancePage : Page
|
||||
InitializeComponent();
|
||||
|
||||
var settings = App.Current.Services.GetService<SettingsModel>()!;
|
||||
var themeService = App.Current.Services.GetService<IThemeService>()!;
|
||||
var themeService = App.Current.Services.GetRequiredService<IThemeService>();
|
||||
var topLevelCommandManager = App.Current.Services.GetService<TopLevelCommandManager>()!;
|
||||
ViewModel = new SettingsViewModel(settings, topLevelCommandManager, _mainTaskScheduler, themeService);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user