mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-21 18:54:01 -04:00
theme: skip matugen runs whose inputs match the last applied run
fixes #3841
(cherry picked from commit afeea489c9)
This commit is contained in:
@@ -1876,9 +1876,9 @@ Singleton {
|
||||
}
|
||||
|
||||
const runKey = Qt.md5(JSON.stringify(args));
|
||||
const skipUnchanged = !_matugenRunKey && !colorsFileLoadFailed && typeof SettingsData !== "undefined" && !SettingsData.generateThemeAtStartup;
|
||||
if (skipUnchanged && runKey === CacheData.matugenAppliedKey) {
|
||||
log.info("Theme inputs unchanged since the last run, skipping startup generation");
|
||||
const startupRun = !_matugenRunKey && typeof SettingsData !== "undefined" && SettingsData.generateThemeAtStartup;
|
||||
if (!startupRun && !colorsFileLoadFailed && runKey === CacheData.matugenAppliedKey) {
|
||||
log.info("Theme inputs unchanged since the last run, skipping generation");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user