New icon that shows if you have connection errors

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

BIN
icons/mailbox_error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

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):

3727
res.py

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
<qresource prefix="/">
<file>icons/mailbox_empty.png</file>
<file>icons/mailbox_full.png</file>
<file>icons/mailbox_error.png</file>
<file>icons/menu_quit.png</file>
<file>icons/check_now.png</file>
<file>icons/settings.png</file>