Browse Source

also move new-quotes event to FiatField

patch-4
Sander van Grieken 3 years ago
parent
commit
69eb0f3f47
  1. 9
      electrum/gui/qml/components/Receive.qml
  2. 9
      electrum/gui/qml/components/Send.qml
  3. 10
      electrum/gui/qml/components/controls/FiatField.qml

9
electrum/gui/qml/components/Receive.qml

@ -230,13 +230,4 @@ Pane {
}
}
Connections {
target: Daemon.fx
function onQuotesUpdated() {
amountFiat.text = amount.text == ''
? ''
: Daemon.fx.fiatValue(Config.unitsToSats(amount.text))
}
}
}

9
electrum/gui/qml/components/Send.qml

@ -244,15 +244,6 @@ Pane {
}
}
Connections {
target: Daemon.fx
function onQuotesUpdated() {
amountFiat.text = amount.text == ''
? ''
: Daemon.fx.fiatValue(Config.unitsToSats(amount.text))
}
}
// make clicking the dialog background move the scope away from textedit fields
// so the keyboard goes away
MouseArea {

10
electrum/gui/qml/components/controls/FiatField.qml

@ -15,4 +15,14 @@ TextField {
if (amountFiat.activeFocus)
btcfield.text = text == '' ? '' : Config.satsToUnits(Daemon.fx.satoshiValue(amountFiat.text))
}
Connections {
target: Daemon.fx
function onQuotesUpdated() {
amountFiat.text = btcfield.text == ''
? ''
: Daemon.fx.fiatValue(Config.unitsToSats(btcfield.text))
}
}
}

Loading…
Cancel
Save