From d16cf5afbde65e740a6060c4b4b26531d21b18cf Mon Sep 17 00:00:00 2001 From: skomerko <168652295+skomerko@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:30:52 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Chocobo1 --- src/webui/www/private/scripts/contextmenu.js | 2 +- src/webui/www/private/scripts/dynamicTable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/private/scripts/contextmenu.js b/src/webui/www/private/scripts/contextmenu.js index d86c7e50a..919e17680 100644 --- a/src/webui/www/private/scripts/contextmenu.js +++ b/src/webui/www/private/scripts/contextmenu.js @@ -415,7 +415,7 @@ window.qBittorrent.ContextMenu ??= (() => { const show_seq_dl = (all_are_seq_dl || !there_are_seq_dl); const show_f_l_piece_prio = (all_are_f_l_piece_prio || !there_are_f_l_piece_prio); - this.menu.getElement("a[href$=firstLastPiecePrio]").parentNode.classList.toggle("separator", !show_seq_dl && show_f_l_piece_prio); + this.menu.getElement("a[href$=firstLastPiecePrio]").parentNode.classList.toggle("separator", (!show_seq_dl && show_f_l_piece_prio)); if (show_seq_dl) this.showItem("sequentialDownload"); diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index ae347c789..42eb19c8d 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -598,7 +598,7 @@ window.qBittorrent.DynamicTable ??= (() => { th.setAttribute("style", "width: " + this.columns[i].width + "px;" + this.columns[i].style); th.columnName = this.columns[i].name; th.classList.add("column_" + th.columnName); - th.classList.toggle("invisible", (this.columns[i].visible === "0") || this.columns[i].force_hide); + th.classList.toggle("invisible", ((this.columns[i].visible === "0") || this.columns[i].force_hide)); } },