From a50c088c4bfde02fb54347d301855492d4cb2cbf Mon Sep 17 00:00:00 2001 From: f321x Date: Fri, 27 Jun 2025 12:49:12 +0200 Subject: [PATCH] qt: remove colon in "Payment received" notification if there is no amount in the payment request the notification would look weird as it would just show `Payment received:` indicating something might be missing. Now it just says `Payment received` instead. --- electrum/gui/qt/main_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 7ae0cf113..d517150df 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -1357,10 +1357,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener): return if status == PR_PAID: # FIXME notification should only be shown if request was not PAID before - msg = _('Payment received:') + msg = _('Payment received') amount = req.get_amount_sat() if amount: - msg += ' ' + self.format_amount_and_units(amount) + msg += ': ' + self.format_amount_and_units(amount) msg += '\n' + req.get_message() self.notify(msg) self.receive_tab.request_list.delete_item(key)