From 0ac2ca8ed34bf9eb78a49e1b4d4eb76140ea0a81 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 2 Mar 2019 19:25:54 +0100 Subject: [PATCH] qt "new transaction" notifications: change wording closes #5171 --- electrum/gui/qt/main_window.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 35cd6a34d..a69dcfae0 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -671,15 +671,17 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): total_amount = 0 for tx in txns: is_relevant, is_mine, v, fee = self.wallet.get_wallet_delta(tx) - if is_relevant: - total_amount += v - self.notify(_("{} new transactions received: Total amount received in the new transactions {}") + if not is_relevant: + continue + total_amount += v + self.notify(_("{} new transactions: Total amount received in the new transactions {}") .format(len(txns), self.format_amount_and_units(total_amount))) else: for tx in txns: is_relevant, is_mine, v, fee = self.wallet.get_wallet_delta(tx) - if is_relevant: - self.notify(_("New transaction received: {}").format(self.format_amount_and_units(v))) + if not is_relevant: + continue + self.notify(_("New transaction: {}").format(self.format_amount_and_units(v))) def notify(self, message): if self.tray: