From 254f39f89d6348bfe2c175cc4cfd3eceef072bd5 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello <8296030+Piccirello@users.noreply.github.com> Date: Sun, 22 Jun 2025 02:55:37 -0400 Subject: [PATCH] WebUI: Restore node default collapse state By default, nodes should be expanded until explicitly collapsed. This restores the default behavior which changed in https://github.com/qbittorrent/qBittorrent/commit/b4a16f64641873bd067ab5f6c6d54c0b4c12fdcf. Relevant: https://github.com/qbittorrent/qBittorrent/pull/21645#discussion_r2150695297 PR #22879. --- src/webui/www/private/scripts/dynamicTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index f0f20c48b..539b003d3 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -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,