mirror of
https://github.com/aclist/dztui.git
synced 2026-08-27 10:17:31 +02:00
Merge pull request #383 from aclist/fix/block-refresh
fix: do not trigger decrement if tree is unloaded
This commit is contained in:
commit
6516e7ae3c
@ -141,6 +141,8 @@ class RefreshButton(IconTextButton):
|
||||
|
||||
def _on_refresh_clicked(self, button: Self) -> None:
|
||||
"""Spawned in a thread"""
|
||||
if self.controller.get_active_treeview().is_loaded() is False:
|
||||
return
|
||||
self.is_clicked = True
|
||||
self.controller.refresh_tree()
|
||||
# TODO: get server tab enum
|
||||
|
||||
Loading…
Reference in New Issue
Block a user