From e2867b7fe8415dfeb4cc23a8d113097be2a6c01a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 16 Mar 2023 13:02:49 +0100 Subject: [PATCH] qml: move Pay button to the right the default action should always be to the right side, because right-handed people are dominating the world :-). --- electrum/gui/qml/components/InvoiceDialog.qml | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/electrum/gui/qml/components/InvoiceDialog.qml b/electrum/gui/qml/components/InvoiceDialog.qml index 5f72de80a..b0a012147 100644 --- a/electrum/gui/qml/components/InvoiceDialog.qml +++ b/electrum/gui/qml/components/InvoiceDialog.qml @@ -409,19 +409,6 @@ ElDialog { ButtonContainer { Layout.fillWidth: true - FlatButton { - Layout.fillWidth: true - Layout.preferredWidth: 1 - text: qsTr('Pay') - icon.source: '../../icons/confirmed.png' - enabled: invoice.invoiceType != Invoice.Invalid && invoice.canPay && !amountContainer.editmode - onClicked: { - if (invoice_key == '') // save invoice if not retrieved from key - invoice.save_invoice() - dialog.close() - doPay() // only signal here - } - } FlatButton { Layout.fillWidth: true Layout.preferredWidth: 1 @@ -433,7 +420,6 @@ ElDialog { dialog.close() } } - FlatButton { Layout.fillWidth: true Layout.preferredWidth: 1 @@ -447,6 +433,19 @@ ElDialog { dialog.close() } } + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 + text: qsTr('Pay') + icon.source: '../../icons/confirmed.png' + enabled: invoice.invoiceType != Invoice.Invalid && invoice.canPay && !amountContainer.editmode + onClicked: { + if (invoice_key == '') // save invoice if not retrieved from key + invoice.save_invoice() + dialog.close() + doPay() // only signal here + } + } } }