mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
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:
committed by
GitHub
parent
d702a02c1f
commit
254f39f89d
@@ -2724,7 +2724,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,
|
||||||
|
|||||||
Reference in New Issue
Block a user