WebUI: Restore node default collapse state

By default, nodes should be expanded until explicitly collapsed. This restores the default behavior which changed in b4a16f6464.

Relevant: https://github.com/qbittorrent/qBittorrent/pull/21645#discussion_r2150695297

PR #22879.
This commit is contained in:
Thomas Piccirello
2025-06-22 02:55:37 -04:00
committed by GitHub
parent d702a02c1f
commit 254f39f89d

View File

@@ -2724,7 +2724,7 @@ window.qBittorrent.DynamicTable ??= (() => {
if (node.isFolder) {
if (!this.collapseState.has(node.rowId))
this.collapseState.set(node.rowId, { depth: depth, collapsed: depth > 0 });
this.collapseState.set(node.rowId, { depth: depth, collapsed: false });
const data = {
rowId: node.rowId,
size: node.size,