WebUI: Add multi-file renaming

PR #18287.
Closes #16239.
This commit is contained in:
loligans
2023-02-19 03:07:55 -08:00
committed by GitHub
parent d75fd3fcde
commit 466314675c
12 changed files with 1340 additions and 28 deletions

View File

@@ -135,6 +135,11 @@ window.qBittorrent.FileTree = (function() {
const FolderNode = new Class({
Extends: FileNode,
/**
* Will automatically tick the checkbox for a folder if all subfolders and files are also ticked
*/
autoCheckFolders: true,
initialize: function() {
this.isFolder = true;
},
@@ -184,7 +189,7 @@ window.qBittorrent.FileTree = (function() {
this.size = size;
this.remaining = remaining;
this.checked = checked;
this.checked = this.autoCheckFolders ? checked : TriState.Checked;
this.progress = (progress / size);
this.priority = priority;
this.availability = (availability / size);