qml: fix check when swap enabled
This commit is contained in:
@@ -125,7 +125,8 @@ Pane {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: 1
|
Layout.preferredWidth: 1
|
||||||
text: qsTr('Swap');
|
text: qsTr('Swap');
|
||||||
enabled: Daemon.currentWallet.lightningCanSend.satsInt > 0 || Daemon.currentWallet.lightningCanReceive.satInt > 0
|
enabled: Daemon.currentWallet.lightningCanSend.satsInt > 0 ||
|
||||||
|
(Daemon.currentWallet.lightningCanReceive.satsInt > 0 && Daemon.currentWallet.confirmedBalance.satsInt > 0)
|
||||||
icon.source: Qt.resolvedUrl('../../icons/update.png')
|
icon.source: Qt.resolvedUrl('../../icons/update.png')
|
||||||
onClicked: app.startSwap()
|
onClicked: app.startSwap()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user