mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
GTKUI: Modify Show Zero Hits to apply to all filter categories
This commit is contained in:
parent
5479bdd85c
commit
42f5cc382d
@ -222,8 +222,9 @@ class FilterManager(component.Component):
|
||||
items["tracker_host"]["All"] = len(torrent_ids)
|
||||
items["tracker_host"]["Error"] = len(tracker_error_filter(torrent_ids, ("Error",)))
|
||||
|
||||
if "state" in tree_keys and not show_zero_hits:
|
||||
self._hide_state_items(items["state"])
|
||||
if not show_zero_hits:
|
||||
for cat in tree_keys:
|
||||
self._hide_state_items(items[cat])
|
||||
|
||||
# Return a dict of tuples:
|
||||
sorted_items = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user