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:
Michael Jolley
2025-12-12 19:42:36 -06:00
committed by GitHub
parent a4f448b3e1
commit 0cd5fabf2d

View File

@@ -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);
}