Merge pull request #3 from RomanZhilich/fix_error_icon
Show error icon on connection error.
This commit is contained in:
commit
87c40d0a1d
|
@ -176,6 +176,9 @@ def mail_check():
|
|||
if mail_count == 0:
|
||||
window.trayIcon.setToolTip ("You have no unread mail")
|
||||
window.trayIcon.setIcon(QIcon(":icons/mailbox_empty.png"))
|
||||
elif mail_count == "ERROR":
|
||||
window.trayIcon.setIcon(QIcon(":icons/mailbox_error.png"))
|
||||
window.trayIcon.setToolTip ("Error checking mail.")
|
||||
else:
|
||||
window.trayIcon.setToolTip ("You have "+ str(mail_count)+" unread letters")
|
||||
window.trayIcon.setIcon(QIcon(":icons/mailbox_full.png"))
|
||||
|
|
Loading…
Reference in New Issue