electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f4650a199a4cd92c628ca6b3480ea108fbab5850
parent 9fc946492bb329f274431c9af6105bccc1560fea
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 24 Nov 2017 10:24:00 +0100

Merge pull request #3366 from SomberNight/notify_inc_tx_icon_qt

follow-up #3361 (notifications for incoming transactions)
Diffstat:
Mgui/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 @@ -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)