Browse Source

New icon that shows if you have connection errors

pull/3/head
Rinaldus 7 years ago
parent
commit
27ebc0884a
  1. BIN
      icons/mailbox_error.png
  2. 1
      mail-notifier.py
  3. 3729
      res.py
  4. 1
      resources.qrc

BIN
icons/mailbox_error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

1
mail-notifier.py

@ -166,6 +166,7 @@ def mail_check(): @@ -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):

3729
res.py

File diff suppressed because it is too large Load Diff

1
resources.qrc

@ -2,6 +2,7 @@ @@ -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>

Loading…
Cancel
Save