mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: handle zero mods
This commit is contained in:
1 parent
0fad9155e2
commit
34d8545c94
4 files changed
+18
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user