Restore node default collapse state

By default, nodes should be expanded until explicitly collapsed. This restores the default behavior which changed in b4a16f6464.
This commit is contained in:
Thomas Piccirello 2025-06-05 15:34:29 -07:00
commit e47db0a97a
No known key found for this signature in database

View file

@ -2733,7 +2733,7 @@ window.qBittorrent.DynamicTable ??= (() => {
if (node.isFolder) { if (node.isFolder) {
if (!this.collapseState.has(node.rowId)) 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 = { const data = {
rowId: node.rowId, rowId: node.rowId,
size: node.size, size: node.size,