mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Merge 3c3b891902
into b7a43ea118
This commit is contained in:
commit
7ad0e772c7
1 changed files with 7 additions and 5 deletions
|
@ -256,9 +256,7 @@
|
||||||
document.getElementById("renameOptions").disabled = false;
|
document.getElementById("renameOptions").disabled = false;
|
||||||
|
|
||||||
// Recreate table
|
// Recreate table
|
||||||
let selectedRows = bulkRenameFilesTable.getSelectedRows().map(row => row.rowId.toString());
|
const selectedRows = bulkRenameFilesTable.getSelectedRows().map(row => row.rowId.toString());
|
||||||
for (const renamedRow of rows)
|
|
||||||
selectedRows = selectedRows.filter(selectedRow => selectedRow !== renamedRow.rowId.toString());
|
|
||||||
bulkRenameFilesTable.clear();
|
bulkRenameFilesTable.clear();
|
||||||
|
|
||||||
// Adjust file enumeration count by 1 when replacing single files to prevent naming conflicts
|
// Adjust file enumeration count by 1 when replacing single files to prevent naming conflicts
|
||||||
|
@ -379,7 +377,7 @@
|
||||||
url.search = new URLSearchParams({
|
url.search = new URLSearchParams({
|
||||||
hash: data.hash
|
hash: data.hash
|
||||||
});
|
});
|
||||||
fetch(url, {
|
return fetch(url, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
cache: "no-store"
|
cache: "no-store"
|
||||||
})
|
})
|
||||||
|
@ -394,7 +392,11 @@
|
||||||
handleTorrentFiles(files, selectedRows);
|
handleTorrentFiles(files, selectedRows);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
setupTable(data.selectedRows);
|
setupTable(data.selectedRows).then(() => {
|
||||||
|
document.getElementById("rootMultiRename_cb").click();
|
||||||
|
}).catch((error) => {
|
||||||
|
console.error("Error setting up the table:", error);
|
||||||
|
});
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue