1
0

qml: show fiat state only for non-lightning wallets

This commit is contained in:
Sander van Grieken
2023-03-16 11:29:07 +01:00
parent c5dc133c4c
commit 6d67f51e44

View File

@@ -150,7 +150,7 @@ Item {
MouseArea {
anchors.fill: parent
onClicked: {
root.state = root.state == 'fiat' ? 'btc' : 'fiat'
root.state = root.state == 'fiat' && Daemon.currentWallet.isLightning ? 'btc' : 'fiat'
}
}
@@ -164,7 +164,11 @@ Item {
Connections {
target: Daemon
function onWalletLoaded() { setBalances() }
function onWalletLoaded() {
setBalances()
if (!Daemon.currentWallet.isLightning)
root.state = 'fiat'
}
}
Connections {