From a21209461239b9a703442a46a01453ecbb4ac8e0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 16 Mar 2021 12:14:26 +0000 Subject: [PATCH] Show box title --- notifications_client.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index a09053964..4eb40c1bb 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -415,12 +415,6 @@ def _showLocalBox(notifyJson: {}, boxName: str, _clearScreen() _showDesktopBanner() - if not index: - sayStr = 'You have no ' + boxName + ' posts yet.' - _sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak) - print('') - return False - notificationIcons = '' if notifyJson: if notifyJson.get('followRequests'): @@ -443,6 +437,13 @@ def _showLocalBox(notifyJson: {}, boxName: str, titleStr += notificationIcons print(indent + titleStr + '\n') + if not index: + print('') + sayStr = 'You have no ' + boxName + ' posts yet.' + _sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak) + print('') + return False + maxPostIndex = len(index) index.sort(reverse=True) ctr = 0