1
0

also move new-quotes event to FiatField

This commit is contained in:
Sander van Grieken
2022-05-12 10:22:39 +02:00
parent e84bc4561f
commit 69eb0f3f47
3 changed files with 10 additions and 18 deletions

View File

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

View File

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

View File

@@ -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))
}
}
}