fix: do not trigger decrement if tree is unloaded (#360)

This commit is contained in:
aclist 2026-06-23 18:27:34 +09:00
parent 5280121e43
commit 46c1da232e

View File

@ -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