From 9353220e5d57f4720817324ac37fcb1cad92210c Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 8 Sep 2021 16:50:26 +0200 Subject: [PATCH] qt send tab: try to make it clearer the sender pays the fee related: https://github.com/spesmilo/electrum/issues/7488 --- electrum/gui/qt/confirm_tx_dialog.py | 5 ++++- electrum/gui/qt/main_window.py | 9 +++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/electrum/gui/qt/confirm_tx_dialog.py b/electrum/gui/qt/confirm_tx_dialog.py index ad29fd2f4..d08bdd726 100644 --- a/electrum/gui/qt/confirm_tx_dialog.py +++ b/electrum/gui/qt/confirm_tx_dialog.py @@ -136,9 +136,12 @@ class ConfirmTxDialog(TxEditor, WindowModalDialog): self.setLayout(vbox) grid = QGridLayout() vbox.addLayout(grid) + + msg = (_('The amount to be received by the recipient.') + ' ' + + _('Fees are paid by the sender.')) self.amount_label = QLabel('') self.amount_label.setTextInteractionFlags(Qt.TextSelectableByMouse) - grid.addWidget(QLabel(_("Amount to be sent") + ": "), 0, 0) + grid.addWidget(HelpLabel(_("Amount to be sent") + ": ", msg), 0, 0) grid.addWidget(self.amount_label, 0, 1) msg = _('Bitcoin transactions are in general not free. A transaction fee is paid by the sender of the funds.') + '\n\n'\ diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 5051d94ee..cfb66a500 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -1369,10 +1369,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): self.message_e = SizedFreezableLineEdit(width=700) grid.addWidget(self.message_e, 2, 1, 1, -1) - msg = _('Amount to be sent.') + '\n\n' \ - + _('The amount will be displayed in red if you do not have enough funds in your wallet.') + ' ' \ - + _('Note that if you have frozen some of your addresses, the available funds will be lower than your total balance.') + '\n\n' \ - + _('Keyboard shortcut: type "!" to send all your coins.') + msg = (_('The amount to be received by the recipient.') + ' ' + + _('Fees are paid by the sender.') + '\n\n' + + _('The amount will be displayed in red if you do not have enough funds in your wallet.') + ' ' + + _('Note that if you have frozen some of your addresses, the available funds will be lower than your total balance.') + '\n\n' + + _('Keyboard shortcut: type "!" to send all your coins.')) amount_label = HelpLabel(_('Amount'), msg) grid.addWidget(amount_label, 3, 0) grid.addWidget(self.amount_e, 3, 1)