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

View File

@ -65,7 +65,7 @@ def is_excluded(what):
def on_ui_update(ui): def on_ui_update(ui):
new_value = ' %d (%d)' % (UNREAD_MESSAGES, TOTAL_MESSAGES) 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(): if ui.is_inky():
pos = (80, 0) pos = (80, 0)
else: else: