working good state
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user