qml: show fiat state only for non-lightning wallets
This commit is contained in:
@@ -150,7 +150,7 @@ Item {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.state = root.state == 'fiat' ? 'btc' : 'fiat'
|
root.state = root.state == 'fiat' && Daemon.currentWallet.isLightning ? 'btc' : 'fiat'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,7 +164,11 @@ Item {
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: Daemon
|
target: Daemon
|
||||||
function onWalletLoaded() { setBalances() }
|
function onWalletLoaded() {
|
||||||
|
setBalances()
|
||||||
|
if (!Daemon.currentWallet.isLightning)
|
||||||
|
root.state = 'fiat'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|||||||
Reference in New Issue
Block a user