From 7182e3f9650e4de9f944d8c4e897fe4a24a3b8bc Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 29 Oct 2025 19:05:58 +0100 Subject: dotnet 10, synapse admin room list improvements --- MatrixUtils.Desktop/App.axaml.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'MatrixUtils.Desktop/App.axaml.cs') diff --git a/MatrixUtils.Desktop/App.axaml.cs b/MatrixUtils.Desktop/App.axaml.cs index 3a106ab..8a5d3e2 100644 --- a/MatrixUtils.Desktop/App.axaml.cs +++ b/MatrixUtils.Desktop/App.axaml.cs @@ -15,7 +15,6 @@ public partial class App : Application { public override void OnFrameworkInitializationCompleted() { host = Host.CreateDefaultBuilder().ConfigureServices((ctx, services) => { services.AddSingleton(); - services.AddSingleton(); services.AddSingleton(x => new TieredStorageService( cacheStorageProvider: new FileStorageProvider(x.GetService()!.CacheStoragePath), @@ -40,10 +39,10 @@ public partial class App : Application { var scope = scopeFac.CreateScope(); desktop.MainWindow = scope.ServiceProvider.GetRequiredService(); } - - if(Environment.GetEnvironmentVariable("AVALONIA_THEME")?.Equals("dark", StringComparison.OrdinalIgnoreCase) ?? false) + + if (Environment.GetEnvironmentVariable("AVALONIA_THEME")?.Equals("dark", StringComparison.OrdinalIgnoreCase) ?? false) RequestedThemeVariant = ThemeVariant.Dark; - + base.OnFrameworkInitializationCompleted(); } } \ No newline at end of file -- cgit 1.5.1