Browse Source
Merge pull request #3366 from SomberNight/notify_inc_tx_icon_qt
follow-up #3361 (notifications for incoming transactions)
3.0.x
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
gui/qt/main_window.py
|
|
@ -572,7 +572,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): |
|
|
|
|
|
|
|
def notify(self, message): |
|
|
|
if self.tray: |
|
|
|
self.tray.showMessage("Electrum", message, QIcon(":icons/electrum_dark_icon"), 20000) |
|
|
|
try: |
|
|
|
# this requires Qt 5.9 |
|
|
|
self.tray.showMessage("Electrum", message, QIcon(":icons/electrum_dark_icon"), 20000) |
|
|
|
except TypeError: |
|
|
|
self.tray.showMessage("Electrum", message, QSystemTrayIcon.Information, 20000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|