mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Rename property for clarity
This commit is contained in:
parent
a7d10b4a91
commit
280aa15a90
2 changed files with 5 additions and 5 deletions
|
@ -310,7 +310,7 @@
|
|||
const addRowsToTable = (rows, selectedRows) => {
|
||||
let rowId = 0;
|
||||
const rootNode = new window.qBittorrent.FileTree.FolderNode();
|
||||
rootNode.autoCheckFolders = false;
|
||||
rootNode.autoCalculateCheckedState = false;
|
||||
|
||||
rows.forEach((row) => {
|
||||
const pathItems = row.path.split(window.qBittorrent.Filesystem.PathSeparator);
|
||||
|
@ -334,7 +334,7 @@
|
|||
|
||||
if (folderNode === null) {
|
||||
folderNode = new window.qBittorrent.FileTree.FolderNode();
|
||||
folderNode.autoCheckFolders = false;
|
||||
folderNode.autoCalculateCheckedState = false;
|
||||
folderNode.rowId = rowId;
|
||||
folderNode.path = (parent.path === "")
|
||||
? folderName
|
||||
|
|
|
@ -151,9 +151,9 @@ window.qBittorrent.FileTree ??= (() => {
|
|||
|
||||
class FolderNode extends FileNode {
|
||||
/**
|
||||
* Will automatically tick the checkbox for a folder if all subfolders and files are also ticked
|
||||
* When true, the folder's `checked` state will be calculately automatically based on its children
|
||||
*/
|
||||
autoCheckFolders = true;
|
||||
autoCalculateCheckedState = true;
|
||||
isFolder = true;
|
||||
fileId = -1;
|
||||
|
||||
|
@ -212,7 +212,7 @@ window.qBittorrent.FileTree ??= (() => {
|
|||
}
|
||||
}
|
||||
|
||||
root.checked = root.autoCheckFolders ? root.checked : TriState.Checked;
|
||||
root.checked = root.autoCalculateCheckedState ? root.checked : TriState.Checked;
|
||||
root.progress /= root.size;
|
||||
root.availability /= root.size;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue