Merge pull request #314 from ChipWolf/patch-1

Only show ui complication if you have unread pwnmail
This commit is contained in:
evilsocket 2019-10-18 09:45:10 +02:00 committed by GitHub
commit eeee4bdd3c
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: