fix: sync type filter with selected plugins

This commit is contained in:
fujie
2026-03-16 14:38:55 +08:00
parent 5a7b1d5097
commit 976f9e3d74

View File

@@ -1061,6 +1061,8 @@ def _build_selection_dialog_js(
" button.addEventListener('click', () => {", " button.addEventListener('click', () => {",
" const pluginType = button.getAttribute('data-plugin-type') || '';", " const pluginType = button.getAttribute('data-plugin-type') || '';",
" activeFilter = activeFilter === pluginType ? '' : pluginType;", " activeFilter = activeFilter === pluginType ? '' : pluginType;",
" selected.clear();",
" getVisibleOptions().forEach((item) => selected.add(item.id));",
" renderList();", " renderList();",
" });", " });",
" });", " });",