Fix manual theme being overridden by system changes

This commit is contained in:
Bülhoff 2026-09-21 14:39:13 +02:00
parent bb8f6f13f0
commit 99966af89f

View File

@ -465,6 +465,10 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
private async Task SystemeThemeChanged(bool isDark) private async Task SystemeThemeChanged(bool isDark)
{ {
this.Logger.LogInformation($"The system theme changed to {(isDark ? "dark" : "light")}."); this.Logger.LogInformation($"The system theme changed to {(isDark ? "dark" : "light")}.");
if (this.SettingsManager.ConfigurationData.App.PreferredTheme is not Themes.SYSTEM)
return;
await this.UpdateThemeConfiguration(); await this.UpdateThemeConfiguration();
} }