mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
WebUI: Set status filter to 'All' if selected filter is no longer visible
Fixup for #21145 To reproduce: 1. Select status filter with 0 torrents 2. Enable 'Auto hide zero status filters' and save settings. Hidden filter is still selected: PR #22487.
This commit is contained in:
parent
cdddaae939
commit
6c36830e5e
1 changed files with 2 additions and 0 deletions
|
@ -481,6 +481,8 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
updateFilter("checking", "QBT_TR(Checking (%1))QBT_TR[CONTEXT=StatusFilterWidget]");
|
||||
updateFilter("moving", "QBT_TR(Moving (%1))QBT_TR[CONTEXT=StatusFilterWidget]");
|
||||
updateFilter("errored", "QBT_TR(Errored (%1))QBT_TR[CONTEXT=StatusFilterWidget]");
|
||||
if (useAutoHideZeroStatusFilters && document.getElementById(`${selectedStatus}_filter`).classList.contains("invisible"))
|
||||
setStatusFilter("all");
|
||||
};
|
||||
|
||||
const highlightSelectedStatus = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue