From 61a6b77a52e22ea3db55ebfb3207a2b3db02601b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chip=20Wolf=20=E2=80=AE?= Date: Thu, 17 Oct 2019 23:09:49 +0100 Subject: [PATCH] Only show ui complication if you have unread pwnmail --- pwnagotchi/plugins/default/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/grid.py b/pwnagotchi/plugins/default/grid.py index 264de46d..95356522 100644 --- a/pwnagotchi/plugins/default/grid.py +++ b/pwnagotchi/plugins/default/grid.py @@ -65,7 +65,7 @@ def is_excluded(what): def on_ui_update(ui): new_value = ' %d (%d)' % (UNREAD_MESSAGES, TOTAL_MESSAGES) - if not ui.has_element('mailbox') and TOTAL_MESSAGES > 0: + if not ui.has_element('mailbox') and UNREAD_MESSAGES > 0: if ui.is_inky(): pos = (80, 0) else: