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
View File
@@ -104,6 +104,8 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore
# self.get_selection().select_iter(it)
# return True
if self.get_model() is None:
return
if len(self.get_model()) < 2:
return