From b950904ef48c402cb0680c2a376dc7c1c62c63ec Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 24 Nov 2017 02:10:49 +0100 Subject: [PATCH] follow-up #3361 (notifications for incoming transactions) --- gui/qt/main_window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index b022e91f..520f34ef 100644 --- a/gui/qt/main_window.py +++ b/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)