From 802fe8c73ab59097fe6f6668480f02850fd3eb94 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 29 Oct 2020 01:58:34 +0100 Subject: [PATCH] qt user interface: send tab: change "Pay" button text to "Pay..." Ellipsis ("...") is sometimes used in UIs to suggest there will be an additional modal dialog before executing the action. --- electrum/gui/qt/invoice_list.py | 4 ++-- electrum/gui/qt/main_window.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qt/invoice_list.py b/electrum/gui/qt/invoice_list.py index 1ba082127..7191c9eca 100644 --- a/electrum/gui/qt/invoice_list.py +++ b/electrum/gui/qt/invoice_list.py @@ -142,7 +142,7 @@ class InvoiceList(MyTreeView): can_batch_pay = all([i.type == PR_TYPE_ONCHAIN and wallet.get_invoice_status(i) == PR_UNPAID for i in invoices]) menu = QMenu(self) if can_batch_pay: - menu.addAction(_("Batch pay invoices"), lambda: self.parent.pay_multiple_invoices(invoices)) + menu.addAction(_("Batch pay invoices") + "...", lambda: self.parent.pay_multiple_invoices(invoices)) menu.addAction(_("Delete invoices"), lambda: self.parent.delete_invoices(keys)) menu.exec_(self.viewport().mapToGlobal(position)) return @@ -163,7 +163,7 @@ class InvoiceList(MyTreeView): menu.addAction(_("Details"), lambda: self.parent.show_onchain_invoice(invoice)) status = wallet.get_invoice_status(invoice) if status == PR_UNPAID: - menu.addAction(_("Pay"), lambda: self.parent.do_pay_invoice(invoice)) + menu.addAction(_("Pay") + "...", lambda: self.parent.do_pay_invoice(invoice)) if status == PR_FAILED: menu.addAction(_("Retry"), lambda: self.parent.do_pay_invoice(invoice)) if self.parent.wallet.lnworker: diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index ac8bb510a..fa604cf3e 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -1370,7 +1370,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): grid.addWidget(self.max_button, 3, 3) self.save_button = EnterButton(_("Save"), self.do_save_invoice) - self.send_button = EnterButton(_("Pay"), self.do_pay) + self.send_button = EnterButton(_("Pay") + "...", self.do_pay) self.clear_button = EnterButton(_("Clear"), self.do_clear) buttons = QHBoxLayout()