mirror of
https://github.com/aclist/dztui.git
synced 2026-11-09 19:40:38 +01:00
fix: start filters insensitive if tree is empty
This commit is contained in:
1 parent
d92a0010e2
commit
8e6cff4bf0
5 files changed
+44
-21
No files matched your search
@@ -17,7 +17,19 @@ class Log(CursorMixin, HelpMenuMixin, Gtk.ScrolledWindow): # type: ignore
|
||||
def __init__(self, controller: "Controller") -> None:
|
||||
super().__init__()
|
||||
self.treeview = LogTreeView(controller)
|
||||
self.add(self.treeview)
|
||||
self.box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
self.box.add(self.treeview)
|
||||
|
||||
#self.add(self.treeview)
|
||||
# TODO proxymodel into this
|
||||
|
||||
self.check_bar = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
||||
for check in ("Warning", "Critical", "Debug", "Info"):
|
||||
c = Gtk.CheckButton(label=check)
|
||||
self.check_bar.pack_start(c, False, False, 0)
|
||||
# c.set_active(True)
|
||||
self.box.add(self.check_bar)
|
||||
self.add(self.box)
|
||||
|
||||
self.controller = controller
|
||||
self.controller.register_widget("logtreeview", self.treeview)
|
||||
|
||||
Reference in new issue
Block a user