Show an info when an action finished
This commit is contained in:
parent
ecde43a0a3
commit
8af4b9ef45
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ class Action:
|
|||
def __call__(self):
|
||||
try:
|
||||
self.c(*self.args, **self.kwargs)
|
||||
ui.notify(f"Action '{self.name}' finished.", type="positive")
|
||||
except Exception as e:
|
||||
ui.notify(f"Exception: {e.__str__()}", close_button=True, type="warning", timeout=0, multi_line=True)
|
||||
raise e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue