From 7a0bb07518b83be006a9f4a86c25dfa68967c5c5 Mon Sep 17 00:00:00 2001 From: bbedward Date: Sun, 22 Feb 2026 22:57:28 -0500 Subject: [PATCH] matugen: unconditionally run portal sync even if matugen errors --- core/internal/matugen/matugen.go | 8 +++++--- quickshell/Common/Theme.qml | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/internal/matugen/matugen.go b/core/internal/matugen/matugen.go index 1256e189..b77c4e4c 100644 --- a/core/internal/matugen/matugen.go +++ b/core/internal/matugen/matugen.go @@ -160,14 +160,16 @@ func Run(opts Options) error { log.Infof("Building theme: %s %s (%s)", opts.Kind, opts.Value, opts.Mode) - if err := buildOnce(&opts); err != nil { - return err - } + buildErr := buildOnce(&opts) if opts.SyncModeWithPortal { syncColorScheme(opts.Mode) } + if buildErr != nil { + return buildErr + } + log.Info("Done") return nil } diff --git a/quickshell/Common/Theme.qml b/quickshell/Common/Theme.qml index 654e952b..5ac94085 100644 --- a/quickshell/Common/Theme.qml +++ b/quickshell/Common/Theme.qml @@ -961,7 +961,9 @@ Singleton { } if (!isGreeterMode) { - PortalService.setLightMode(light); + if (!matugenAvailable) { + PortalService.setLightMode(light); + } if (typeof SettingsData !== "undefined") { SettingsData.updateCosmicThemeMode(light); }