Only show ui complication if you have unread pwnmail
This commit is contained in:
parent
95b871aade
commit
61a6b77a52
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user