mirror of
https://github.com/aclist/dztui.git
synced 2026-11-07 10:30:40 +01:00
feat: filtered model WIP
This commit is contained in:
1 parent
da8722ec2a
commit
4f04d26231
4 files changed
+48
-19
No files matched your search
@@ -246,7 +246,7 @@ class FilterPanel(Gtk.Box):
|
||||
check.set_active(not state)
|
||||
|
||||
def _on_check_toggled(self, button: Gtk.CheckButton) -> None:
|
||||
treeview = self.controller.get_active_treeview()
|
||||
# treeview = self.controller.get_active_treeview()
|
||||
label = button.get_label()
|
||||
state = button.get_active()
|
||||
logger.info(f"User toggled button '{label}' to {state}")
|
||||
@@ -256,7 +256,7 @@ class FilterPanel(Gtk.Box):
|
||||
mode = FilterMode.TOGGLE_OFF
|
||||
|
||||
self.enabled_filters[label] = state
|
||||
treeview.filter(mode, label)
|
||||
self.controller.refilter_model(mode, label)
|
||||
|
||||
def _on_map_changed(self, combo: Gtk.ComboBox) -> None:
|
||||
treeview = self.controller.get_active_treeview()
|
||||
|
||||
Reference in new issue
Block a user