Browse Source

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 :-).
master
ThomasV 3 years ago
parent
commit
e2867b7fe8
  1. 27
      electrum/gui/qml/components/InvoiceDialog.qml

27
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
}
}
}
}

Loading…
Cancel
Save