Browse Source

qml: show fiat state only for non-lightning wallets

master
Sander van Grieken 3 years ago
parent
commit
6d67f51e44
  1. 8
      electrum/gui/qml/components/controls/BalanceSummary.qml

8
electrum/gui/qml/components/controls/BalanceSummary.qml

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

Loading…
Cancel
Save