mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-27 01:53:36 +00:00
Fix manual theme being overridden by system changes
This commit is contained in:
parent
bb8f6f13f0
commit
99966af89f
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user