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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user