feat: catch cancel and shutdown events

This commit is contained in:
aclist committed 2026-05-11 00:52:48 +09:00
1 parent 319966f8e1
commit 2e5860650f
9 files changed
+94 -40

No files matched your search

+2 -1
View File
@@ -64,7 +64,7 @@ class ServerModCols:
@dataclass(slots=True, frozen=True)
class MenuCols:
name: str
hidden: object # GObject.TYPE_PYOBJECT
hidden: object
class FastInsertListStore(ListStore):
@@ -108,6 +108,7 @@ class FastInsertListStore(ListStore):
self.append(row)
def append(self, row: list[Any] | tuple[Any, ...] | None = ...) -> TreeIter:
# FIXME: argument cannot be none
"""
Optimized for speed, but makes no assurances about row homogeneity
and may segfault if types and length are not identical to ListStore.