mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 06:53:48 +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)
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user