Only show ui complication if you have unread pwnmail

This commit is contained in:
Chip Wolf ‮ 2019-10-17 23:09:49 +01:00 committed by GitHub
parent 95b871aade
commit 61a6b77a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: