theme: skip matugen runs whose inputs match the last applied run

fixes #3841

(cherry picked from commit afeea489c9)
This commit is contained in:
bbedward
2026-10-21 11:25:29 -04:00
parent fd1295f959
commit 9ece8f26fa
+3 -3
View File
@@ -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;
}