fix saving settings
This commit is contained in:
parent
244e8227e7
commit
0bfe84d73d
@ -345,14 +345,14 @@ class Settings {
|
|||||||
if (!currentPath[currentProp]) {
|
if (!currentPath[currentProp]) {
|
||||||
currentPath[currentProp] = {};
|
currentPath[currentProp] = {};
|
||||||
}
|
}
|
||||||
this.setProp(propPath, value, options, currentPath[currentProp]);
|
return this.setProp(propPath, value, options, currentPath[currentProp]);
|
||||||
} else {
|
} else {
|
||||||
currentPath[currentProp] = value;
|
currentPath[currentProp] = value;
|
||||||
|
|
||||||
if (options?.forceReload) {
|
if (options?.forceReload) {
|
||||||
this.save();
|
return this.save();
|
||||||
} else {
|
} else {
|
||||||
this.saveWithoutReload();
|
return this.saveWithoutReload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user