From e47db0a97a9a2e69a840fc8de039adfb12850cd7 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Thu, 5 Jun 2025 15:34:29 -0700 Subject: [PATCH] Restore node default collapse state By default, nodes should be expanded until explicitly collapsed. This restores the default behavior which changed in b4a16f64641873bd067ab5f6c6d54c0b4c12fdcf. --- 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 bb4492a86..7b7a5b166 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -2733,7 +2733,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,