Browse Source

qml: show invoices/requests lists through long press

I think we can re-enable the requests list, because requests
are now created explicitly by pressing the create request button.

Since this is an advanced feature, it should not be in the way of
people who do not want to see it. Here is a solution that might
work.
master
ThomasV 3 years ago committed by Sander van Grieken
parent
commit
4647fda04f
  1. 12
      electrum/gui/qml/components/SendDialog.qml
  2. 7
      electrum/gui/qml/components/WalletMainView.qml

12
electrum/gui/qml/components/SendDialog.qml

@ -48,18 +48,6 @@ ElDialog {
ButtonContainer {
Layout.fillWidth: true
FlatButton {
Layout.fillWidth: true
Layout.preferredWidth: 1
icon.source: '../../icons/tab_receive.png'
text: qsTr('Saved Invoices')
enabled: Daemon.currentWallet.invoiceModel.rowCount() // TODO: only count non-expired
onClicked: {
dialog.close()
app.stack.push(Qt.resolvedUrl('Invoices.qml'))
}
}
FlatButton {
Layout.fillWidth: true
Layout.preferredWidth: 1

7
electrum/gui/qml/components/WalletMainView.qml

@ -188,8 +188,10 @@ Item {
var dialog = receiveDetailsDialog.createObject(mainView)
dialog.open()
}
onPressAndHold: {
app.stack.push(Qt.resolvedUrl('ReceiveRequests.qml'))
}
}
FlatButton {
visible: Daemon.currentWallet
Layout.fillWidth: true
@ -197,6 +199,9 @@ Item {
icon.source: '../../icons/tab_send.png'
text: qsTr('Send')
onClicked: openSendDialog()
onPressAndHold: {
app.stack.push(Qt.resolvedUrl('Invoices.qml'))
}
}
}
}

Loading…
Cancel
Save