Security Update

This commit is contained in:
2025-12-24 22:39:55 +08:00
parent 2f12c4e22c
commit f1f2da1ee4

View File

@@ -25,7 +25,8 @@ export function initializeRendererBindings() {
extension_settings[extensionName].amily_render_enabled = isEnabled; extension_settings[extensionName].amily_render_enabled = isEnabled;
// 使用防抖保存,避免频繁操作 // 使用防抖保存,避免频繁操作
saveSettingsDebounced().then(() => { saveSettingsDebounced();
// 仅在状态实际发生变化时执行渲染或清理 // 仅在状态实际发生变化时执行渲染或清理
if (wasEnabled !== isEnabled) { if (wasEnabled !== isEnabled) {
if (isEnabled) { if (isEnabled) {
@@ -35,7 +36,6 @@ export function initializeRendererBindings() {
} }
} }
}); });
});
container.on('change', '#render-depth', function () { container.on('change', '#render-depth', function () {
const depth = parseInt(this.value, 10); const depth = parseInt(this.value, 10);