1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-11 16:22:09 -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) log.Infof("Building theme: %s %s (%s)", opts.Kind, opts.Value, opts.Mode)
if err := buildOnce(&opts); err != nil { buildErr := buildOnce(&opts)
return err
}
if opts.SyncModeWithPortal { if opts.SyncModeWithPortal {
syncColorScheme(opts.Mode) syncColorScheme(opts.Mode)
} }
if buildErr != nil {
return buildErr
}
log.Info("Done") log.Info("Done")
return nil return nil
} }

View File

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