mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
fix: prevent toggling when panel is insensitive
This commit is contained in:
1 parent
46117ecdda
commit
2cc26b6573
1 file changed
+2
@@ -313,6 +313,8 @@ class FilterPanel(Gtk.Box):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def toggle_check(self, digit: int) -> None:
|
def toggle_check(self, digit: int) -> None:
|
||||||
|
if not self.button_grid.is_sensitive():
|
||||||
|
return
|
||||||
checks = self.button_grid.get_checkboxes()
|
checks = self.button_grid.get_checkboxes()
|
||||||
check = checks[digit]
|
check = checks[digit]
|
||||||
state = check.get_active()
|
state = check.get_active()
|
||||||
|
|||||||
Reference in new issue
Block a user