filters: clear all individual checkboxes when limits=none selected
This commit is contained in:
parent
7b9f9fb220
commit
fb9f9df80e
|
@ -469,10 +469,7 @@ class Filters(threading.Thread):
|
||||||
self.cbCN.set_active(True)
|
self.cbCN.set_active(True)
|
||||||
elif limit == "none":
|
elif limit == "none":
|
||||||
if self.limits[limit]:
|
if self.limits[limit]:
|
||||||
if self.num_limit_types == 1:
|
if self.num_limit_types > 1:
|
||||||
for cb in self.cbLimits.values():
|
|
||||||
cb.set_active(False)
|
|
||||||
else:
|
|
||||||
if self.cbNL is not None:
|
if self.cbNL is not None:
|
||||||
self.cbNL.set_active(False)
|
self.cbNL.set_active(False)
|
||||||
if self.cbFL is not None:
|
if self.cbFL is not None:
|
||||||
|
@ -481,6 +478,13 @@ class Filters(threading.Thread):
|
||||||
self.cbPL.set_active(False)
|
self.cbPL.set_active(False)
|
||||||
if self.cbCN is not None:
|
if self.cbCN is not None:
|
||||||
self.cbCN.set_active(False)
|
self.cbCN.set_active(False)
|
||||||
|
#
|
||||||
|
# Finally, clean-up all individual limit checkboxes
|
||||||
|
# needed because the overall limit checkbox may
|
||||||
|
# not be set, or num_limit_types == 1
|
||||||
|
#
|
||||||
|
for cb in self.cbLimits.values():
|
||||||
|
cb.set_active(False)
|
||||||
elif limit == "fl":
|
elif limit == "fl":
|
||||||
if not self.limits[limit]:
|
if not self.limits[limit]:
|
||||||
# only toggle all fl limits off if they are all currently on
|
# only toggle all fl limits off if they are all currently on
|
||||||
|
|
Loading…
Reference in New Issue
Block a user