mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
WebUI: Show file filter when Content tab selected on load
This fixes a bug where the file filter is only shown when the Content tab is switched to. The filter is not being shown if the Content tab is already selected on page load (due to being previously selected). PR #21657.
This commit is contained in:
parent
dfe9daf25d
commit
e8dc6b3f73
1 changed files with 4 additions and 0 deletions
|
@ -1506,6 +1506,10 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
const showFilesFilter = (selectedTab.id === "propFilesLink") && !this.isCollapsed;
|
||||
document.getElementById("torrentFilesFilterToolbar").classList.toggle("invisible", !showFilesFilter);
|
||||
});
|
||||
|
||||
const showFilesFilter = (lastUsedTab === "propFilesLink") && !this.isCollapsed;
|
||||
if (showFilesFilter)
|
||||
document.getElementById("torrentFilesFilterToolbar").classList.remove("invisible");
|
||||
},
|
||||
column: "mainColumn",
|
||||
height: prop_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue