refactor: 'heartInterval', 'token', 'ffmpeg' not need auto save

This commit is contained in:
linyuchen
2024-03-05 09:03:38 +08:00
parent 3fb4b6a8da
commit 3c73826788

View File

@@ -25,7 +25,9 @@ async function onSettingWindowCreated(view: Element) {
if (configKey.length === 2) config[configKey[0]][configKey[1]] = value;
else config[key] = value;
window.llonebot.setConfig(config);
if (!['heartInterval', 'token', 'ffmpeg'].includes(key)){
window.llonebot.setConfig(config);
}
}
};