mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 09:16:05 +03:00
WebUI: Conditionally show filters sidebar
This fixes a bug where the filters sidebar would always be displayed when switching back to the Transfers tab. Closes #19257. PR #20600.
This commit is contained in:
parent
5d1c249606
commit
489bacd766
1 changed files with 5 additions and 2 deletions
|
@ -1147,8 +1147,11 @@ window.addEventListener("DOMContentLoaded", function() {
|
|||
// main window tabs
|
||||
|
||||
const showTransfersTab = function() {
|
||||
$("filtersColumn").removeClass("invisible");
|
||||
$("filtersColumn_handle").removeClass("invisible");
|
||||
const showFiltersSidebar = LocalPreferences.get("show_filters_sidebar", "true") === "true";
|
||||
if (showFiltersSidebar) {
|
||||
$("filtersColumn").removeClass("invisible");
|
||||
$("filtersColumn_handle").removeClass("invisible");
|
||||
}
|
||||
$("mainColumn").removeClass("invisible");
|
||||
$('torrentsFilterToolbar').removeClass("invisible");
|
||||
|
||||
|
|
Loading…
Reference in a new issue