From 7cd5fabffa915b7a790367d7d7971acc0ce8dc12 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 May 2022 18:24:19 +0100 Subject: [PATCH] Read or show --- desktop_client.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/desktop_client.py b/desktop_client.py index 5330a2f5f..01a912b11 100644 --- a/desktop_client.py +++ b/desktop_client.py @@ -1664,11 +1664,17 @@ def run_desktop_client(base_dir: str, proxy_type: str, http_prefix: str, screenreader, system_language, espeak, page_number, new_replies_exist, new_dms_exist) - elif command_str.startswith('read ') or command_str == 'read': - if command_str == 'read': + elif (command_str.startswith('read ') or + command_str == 'read' or + command_str == 'show'): + if command_str == 'read' or \ + command_str == 'show': post_index_str = '1' else: - post_index_str = command_str.split('read ')[1] + if 'read ' in command_str: + post_index_str = command_str.split('read ')[1] + else: + post_index_str = command_str.split('show ')[1] if box_json and post_index_str.isdigit(): _desktop_clear_screen() _desktop_show_banner()