fix saving settings
This commit is contained in:
parent
244e8227e7
commit
0bfe84d73d
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user