improve visual feedback after operation completion
This commit is contained in:
parent
a719142755
commit
7048cb765d
1 changed files with 9 additions and 0 deletions
|
|
@ -403,6 +403,15 @@ class ProgressScreen(Screen[None]):
|
||||||
back_btn.display = show_back
|
back_btn.display = show_back
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
menu_btn = self.query_one("#btn_main_menu", Button)
|
||||||
|
if status == "complete":
|
||||||
|
menu_btn.variant = "success"
|
||||||
|
else:
|
||||||
|
menu_btn.variant = "warning"
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
def show_info(self, migration_status: str, items_status: str):
|
def show_info(self, migration_status: str, items_status: str):
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue