mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
WebUI: remove deleted torrents even if they are currently filtered out
Remove the torrent row regardless of it being visible. I've also removed the return value because: * it doesn't appear to be used by any caller; * other functions (e.g. updateRowData) do not return any value; * it's not clear whether true refers to the torrent being removed from the list of all torrents or just the visible ones. Closes #21070. PR #21071.
This commit is contained in:
parent
9d494e84bf
commit
642a9c29eb
1 changed files with 4 additions and 6 deletions
|
@ -827,13 +827,11 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
|
|
||||||
removeRow: function(rowId) {
|
removeRow: function(rowId) {
|
||||||
this.selectedRows.erase(rowId);
|
this.selectedRows.erase(rowId);
|
||||||
const tr = this.getTrByRowId(rowId);
|
if (this.rows.has(rowId))
|
||||||
if (tr !== null) {
|
|
||||||
tr.destroy();
|
|
||||||
this.rows.erase(rowId);
|
this.rows.erase(rowId);
|
||||||
return true;
|
const tr = this.getTrByRowId(rowId);
|
||||||
}
|
if (tr !== null)
|
||||||
return false;
|
tr.destroy();
|
||||||
},
|
},
|
||||||
|
|
||||||
clear: function() {
|
clear: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue