fix: handle null results

This commit is contained in:
aclist committed 2026-01-24 17:19:12 +09:00
1 parent ab9c97234e
commit e8e78ee6a1
5 files changed
+52 -60

No files matched your search

+2 -2
View File
@@ -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: