Skip to content

Commit

Permalink
fix: refresh tree return crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Sep 21, 2024
1 parent 37b3981 commit 84904a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dooit/ui/widgets/trees/_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ def wrapper(self: "ModelTree", *args, **kwargs) -> Any:

def refresh_tree(func: Callable) -> Callable:
def wrapper(self: "ModelTree", *args, **kwargs) -> Any:
func(self, *args, **kwargs)
res = func(self, *args, **kwargs)
self.force_refresh()
return res

return wrapper

Expand Down

0 comments on commit 84904a1

Please sign in to comment.