fix saving settings

This commit is contained in:
Tamius Han 2025-01-22 11:26:25 +01:00
parent 95a41a2eb2
commit 42cde0a2b3

View File

@ -345,14 +345,14 @@ class Settings {
if (!currentPath[currentProp]) {
currentPath[currentProp] = {};
}
this.setProp(propPath, value, options, currentPath[currentProp]);
return this.setProp(propPath, value, options, currentPath[currentProp]);
} else {
currentPath[currentProp] = value;
if (options?.forceReload) {
this.save();
return this.save();
} else {
this.saveWithoutReload();
return this.saveWithoutReload();
}
}
}