fix: handle zero mods

This commit is contained in:
aclist committed 2026-04-30 01:06:20 +09:00
1 parent 0fad9155e2
commit 34d8545c94
4 files changed
+18 -5

No files matched your search

+3 -2
View File
@@ -61,8 +61,9 @@ class ModTreeView(ModsMixin, ContextMixin, TreeView):
def _on_mods_highlighted(self, emitter: "Emitter") -> None:
self.get_selection().unselect_all()
# TODO: test loading with no mods
def _on_mods_updated(self, emitter: "Emitter", msg: str) -> None:
def _on_mods_updated(self, emitter: "Emitter", msg: str, mods: int) -> None:
if mods < 1:
return
self.set_cursor(0)
def get_selected_mod(self) -> str: