mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 10:05:50 +00:00
Security Update
This commit is contained in:
@@ -25,7 +25,8 @@ export function initializeRendererBindings() {
|
||||
extension_settings[extensionName].amily_render_enabled = isEnabled;
|
||||
|
||||
// 使用防抖保存,避免频繁操作
|
||||
saveSettingsDebounced().then(() => {
|
||||
saveSettingsDebounced();
|
||||
|
||||
// 仅在状态实际发生变化时执行渲染或清理
|
||||
if (wasEnabled !== isEnabled) {
|
||||
if (isEnabled) {
|
||||
@@ -35,7 +36,6 @@ export function initializeRendererBindings() {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
container.on('change', '#render-depth', function () {
|
||||
const depth = parseInt(this.value, 10);
|
||||
|
||||
Reference in New Issue
Block a user