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

fixes #3841
This commit is contained in:
bbedward committed 2026-10-21 10:34:22 -04:00
1 parent 90d3c9731c
commit afeea489c9
1 file changed
+3 -3
+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;
}