mirror of
https://github.com/aclist/dztui.git
synced 2026-11-06 18:10:58 +01:00
fix: handle null results
This commit is contained in:
1 parent
ab9c97234e
commit
e8e78ee6a1
5 files changed
+52
-60
No files matched your search
@@ -34,9 +34,8 @@ class ServerNotebook(Gtk.ScrolledWindow):
|
||||
)
|
||||
self.lan = ServerTreeView(controller, ServerTab.LAN, ContextMenuGroup.SCAN_LAN)
|
||||
|
||||
# self.browser.set_query_func(self.controller.dump_test_2)
|
||||
self.lan.set_query_func(self.controller.dump_test_2)
|
||||
self.browser.set_query_func(self.controller._dump_api)
|
||||
self.browser.set_query_func(self.controller.dump_api)
|
||||
|
||||
tabs = [
|
||||
(self.browser, server_labels.browser),
|
||||
@@ -92,6 +91,7 @@ class ServerNotebook(Gtk.ScrolledWindow):
|
||||
# TODO: strings
|
||||
text = label.strip("*")
|
||||
self.notebook.set_tab_label_text(child, text)
|
||||
# NOTE: spawns a thread
|
||||
self.controller.populate_model()
|
||||
|
||||
def get_active_treeview(self) -> ServerTreeView:
|
||||
|
||||
Reference in new issue
Block a user