also move new-quotes event to FiatField
This commit is contained in:
@@ -230,13 +230,4 @@ Pane {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: Daemon.fx
|
|
||||||
function onQuotesUpdated() {
|
|
||||||
amountFiat.text = amount.text == ''
|
|
||||||
? ''
|
|
||||||
: Daemon.fx.fiatValue(Config.unitsToSats(amount.text))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
// make clicking the dialog background move the scope away from textedit fields
|
||||||
// so the keyboard goes away
|
// so the keyboard goes away
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|||||||
@@ -15,4 +15,14 @@ TextField {
|
|||||||
if (amountFiat.activeFocus)
|
if (amountFiat.activeFocus)
|
||||||
btcfield.text = text == '' ? '' : Config.satsToUnits(Daemon.fx.satoshiValue(amountFiat.text))
|
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))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user