Show an info when an action finished

This commit is contained in:
ChaoticByte 2025-02-28 15:12:21 +01:00
parent ecde43a0a3
commit 8af4b9ef45
No known key found for this signature in database

View file

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