fix(plugin): fix onChangeConfig hook

This commit is contained in:
Su-Yong
2023-11-11 22:08:44 +09:00
parent bb2e865880
commit 7242f9bfd0
2 changed files with 5 additions and 6 deletions

View File

@ -12,11 +12,10 @@ const set = (key: string, value: unknown) => {
};
const setPartial = (key: string, value: object) => {
const newValue = deepmerge(store.get(key) ?? {}, value);
console.log('sival', key, value, newValue);
store.set(newValue);
store.set(key, newValue);
};
function setMenuOption(key: string, value: unknown) {
function setMenuOption(key: string, value: unknown) {
set(key, value);
if (store.get('options.restartOnConfigChanges')) {
restart();