mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Fix metadata calculation when folder size is 0
This commit is contained in:
parent
280aa15a90
commit
352221ebae
1 changed files with 2 additions and 2 deletions
|
@ -213,8 +213,8 @@ window.qBittorrent.FileTree ??= (() => {
|
|||
}
|
||||
|
||||
root.checked = root.autoCalculateCheckedState ? root.checked : TriState.Checked;
|
||||
root.progress /= root.size;
|
||||
root.availability /= root.size;
|
||||
root.progress = (root.size > 0) ? (root.progress / root.size) : 0;
|
||||
root.availability = (root.size > 0) ? (root.availability / root.size) : 0;
|
||||
}
|
||||
|
||||
stack.pop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue