New icon that shows if you have connection errors

This commit is contained in:
2016-01-25 12:43:44 +03:00
parent 42cf334b37
commit 27ebc0884a
4 changed files with 2118 additions and 1611 deletions

View File

@@ -166,6 +166,7 @@ def mail_check():
else:
window.trayIcon.setToolTip("Unable to establish connection to mailbox. Check your mail settings and make sure that you have not network problems.")
notify("Unable to establish connection to mailbox. Check your mail settings and make sure that you have not network problems.")
window.trayIcon.setIcon(QIcon(":icons/mailbox_error.png"))
else:
window.trayIcon.setToolTip("Cannot find configuration file. You should give access to your mailbox")
def notify(message):