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:
Thomas Piccirello 2024-03-25 21:41:47 -07:00 committed by GitHub
parent 5d1c249606
commit 489bacd766
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");