mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-08 04:29:39 +00:00
Fix manual theme being overridden by system changes
This commit is contained in:
1 parent
bb8f6f13f0
commit
99966af89f
1 file changed
+4
@@ -465,6 +465,10 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
|
||||
private async Task SystemeThemeChanged(bool isDark)
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user