mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
WebUI: fix checkbox initialization
Previously the checkbox had all options checked regardless of the stored setting.
This commit is contained in:
parent
ef5506321a
commit
83b0dd3026
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
for (const option of $("logLevelSelect").options)
|
for (const option of $("logLevelSelect").options)
|
||||||
option.setAttribute("selected", selectedLogLevels.includes(option.value));
|
option.toggleAttribute("selected", selectedLogLevels.includes(option.value));
|
||||||
|
|
||||||
selectBox = new vanillaSelectBox("#logLevelSelect", {
|
selectBox = new vanillaSelectBox("#logLevelSelect", {
|
||||||
maxHeight: 200,
|
maxHeight: 200,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue