mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
Apply suggestions from code review
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
parent
00d0725ce1
commit
d16cf5afbd
2 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
||||||
const show_seq_dl = (all_are_seq_dl || !there_are_seq_dl);
|
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);
|
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)
|
if (show_seq_dl)
|
||||||
this.showItem("sequentialDownload");
|
this.showItem("sequentialDownload");
|
||||||
|
|
|
@ -598,7 +598,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
th.setAttribute("style", "width: " + this.columns[i].width + "px;" + this.columns[i].style);
|
th.setAttribute("style", "width: " + this.columns[i].width + "px;" + this.columns[i].style);
|
||||||
th.columnName = this.columns[i].name;
|
th.columnName = this.columns[i].name;
|
||||||
th.classList.add("column_" + th.columnName);
|
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));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue