mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
WebUI: Clear properties panel when torrent no longer selected
PR #21654.
This commit is contained in:
parent
e0431e3ffb
commit
c3c91be578
6 changed files with 61 additions and 10 deletions
|
@ -42,7 +42,8 @@ window.qBittorrent.PropFiles ??= (() => {
|
|||
updateData: updateData,
|
||||
collapseIconClicked: collapseIconClicked,
|
||||
expandFolder: expandFolder,
|
||||
collapseFolder: collapseFolder
|
||||
collapseFolder: collapseFolder,
|
||||
clear: clear
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -343,7 +344,6 @@ window.qBittorrent.PropFiles ??= (() => {
|
|||
if (new_hash === "") {
|
||||
torrentFilesTable.clear();
|
||||
clearTimeout(loadTorrentFilesDataTimer);
|
||||
loadTorrentFilesDataTimer = loadTorrentFilesData.delay(5000);
|
||||
return;
|
||||
}
|
||||
let loadedNewTorrent = false;
|
||||
|
@ -764,6 +764,10 @@ window.qBittorrent.PropFiles ??= (() => {
|
|||
});
|
||||
};
|
||||
|
||||
const clear = function() {
|
||||
torrentFilesTable.clear();
|
||||
};
|
||||
|
||||
return exports();
|
||||
})();
|
||||
Object.freeze(window.qBittorrent.PropFiles);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue