From 99966af89fe0336ea775a82127b8a7e080fc4ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=BClhoff?= Date: Mon, 21 Sep 2026 14:39:13 +0200 Subject: [PATCH] Fix manual theme being overridden by system changes --- app/MindWork AI Studio/Layout/MainLayout.razor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/MindWork AI Studio/Layout/MainLayout.razor.cs b/app/MindWork AI Studio/Layout/MainLayout.razor.cs index a28f6a5c..d77b1668 100644 --- a/app/MindWork AI Studio/Layout/MainLayout.razor.cs +++ b/app/MindWork AI Studio/Layout/MainLayout.razor.cs @@ -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(); }