1
0

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.
This commit is contained in:
ThomasV
2023-03-30 15:16:23 +02:00
committed by Sander van Grieken
parent 8a2372a133
commit 4647fda04f
2 changed files with 6 additions and 13 deletions

View File

@@ -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

View File

@@ -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'))
}
}
}
}