commit 75fbca0d68e0bd6a54c39b2ea5eb5ca8dce362b8
parent dc10e95bedb7c3c228e6a0f93827ddb36fd8ec07
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date: Sun, 31 Jul 2022 21:23:52 +0000
Add notification about starred threads in the middle menu
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/retronews.py b/retronews.py
@@ -783,7 +783,10 @@ def app_render_middle_menu(app: AppState) -> None:
total = thread_message.total_comments
unread = total - thread_message.read_comments
- text = f"--({unread}/{total} unread)--"[:cols].ljust(cols, "-")
+ text = f"--({unread}/{total} unread)"
+ if thread_message.flags.starred:
+ text += "--(starred thread)"
+ text = text[:cols].ljust(cols, "-")
app.screen.insstr(row, 0, text, app.colors.menu | curses.A_BOLD)