improve visual feedback after operation completion
This commit is contained in:
parent
a719142755
commit
7048cb765d
1 changed files with 9 additions and 0 deletions
|
|
@ -404,6 +404,15 @@ class ProgressScreen(Screen[None]):
|
|||
except Exception:
|
||||
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):
|
||||
try:
|
||||
info = self.query_one("#info_container", Vertical)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue