navigation and archive behavior fixed

This commit is contained in:
Tim Bendt
2025-05-05 17:08:01 -06:00
parent fab826963d
commit f4903495e3
8 changed files with 56 additions and 47 deletions

View File

@@ -28,8 +28,8 @@ async def archive_current(app) -> None:
logging.info(stdout.decode())
if process.returncode == 0:
await app.query_one(ListView).pop(index)
app.query_one(ListView).index = index + 1
app.action_next() # Automatically show the next message
app.query_one(ListView).index = index
# app.action_next() # Automatically show the next message
else:
app.show_status(f"Error archiving message: {stderr.decode()}", "error")
except Exception as e: