WebUI: fix adding torrent when using virtual tables

When using virtual tables we can't rely on fetching the values from the DOM. We should always fetch values directly from the file tree.

PR #23263.
Closes #23241.
This commit is contained in:
Tom Piccirello
2025-09-28 11:19:07 -07:00
committed by GitHub
parent 84224c1bbf
commit 4fb54d3da0
3 changed files with 18 additions and 10 deletions

View File

@@ -2478,6 +2478,10 @@ window.qBittorrent.DynamicTable ??= (() => {
this.#addNodeToTable(child, depth + 1, node);
}
getFileTreeArray() {
return this.fileTree.toArray();
}
getRoot() {
return this.fileTree.getRoot();
}