fix breaking settings 😭
This commit is contained in:
parent
9871e16e28
commit
f398a1c871
|
@ -118,7 +118,6 @@ const saveSettingsOnFrequentAction = debounce(async () => {
|
||||||
}
|
}
|
||||||
}, 60_000);
|
}, 60_000);
|
||||||
|
|
||||||
|
|
||||||
export const SettingsStore = new SettingsStoreClass(settings, {
|
export const SettingsStore = new SettingsStoreClass(settings, {
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
getDefaultValue({
|
getDefaultValue({
|
||||||
|
|
|
@ -187,8 +187,9 @@ function loadAndCacheShortcut(key: string, val: any, forceLoad: boolean) {
|
||||||
|
|
||||||
const descriptor = descriptors[propKey];
|
const descriptor = descriptors[propKey];
|
||||||
if (descriptor.writable === true || descriptor.set != null) {
|
if (descriptor.writable === true || descriptor.set != null) {
|
||||||
const newValue = unwrapProxy(value[propKey]);
|
const currentValue = value[propKey];
|
||||||
if (newValue != null) {
|
const newValue = unwrapProxy(currentValue);
|
||||||
|
if (newValue != null && currentValue !== newValue) {
|
||||||
value[propKey] = newValue;
|
value[propKey] = newValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue