Browse Source
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.
patch-4
SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
3 additions and
3 deletions
-
electrum/gui/qt/invoice_list.py
-
electrum/gui/qt/main_window.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: |
|
|
|
|
|
@ -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() |
|
|
|