1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

matugen: unconditionally run portal sync even if matugen errors

This commit is contained in:
bbedward
2026-02-22 22:57:28 -05:00
parent 20ef5e2c18
commit ee1b25d9e8
2 changed files with 8 additions and 4 deletions

View File

@@ -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
}

View File

@@ -961,7 +961,9 @@ Singleton {
}
if (!isGreeterMode) {
PortalService.setLightMode(light);
if (!matugenAvailable) {
PortalService.setLightMode(light);
}
if (typeof SettingsData !== "undefined") {
SettingsData.updateCosmicThemeMode(light);
}