working good state

This commit is contained in:
Tim Bendt
2025-05-01 11:59:28 -04:00
parent 7a5b911414
commit 1f75a03553
20 changed files with 173 additions and 78 deletions

View File

@@ -14,10 +14,9 @@ def action_delete(app) -> None:
text=True
)
if result.returncode == 0:
app.query_one("#main_content", Static).loading = False
app.query_one("#main_content", Static).update(f"Message {app.current_message_id} deleted.")
app.query_one("#main_content").loading = False
action_next(app) # Automatically show the next message
else:
app.query_one("#main_content", Static).update(f"Failed to delete message {app.current_message_id}.")
app.show_status(f"Failed to delete message {app.current_message_id}.", "error")
except Exception as e:
app.query_one("#main_content", Static).update(f"Error: {e}")
app.show_status(f"Error: {e}", "error")