mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
Merge #17195: gui: send amount placeholder value
57e2edea0b
Send amount shows minimum amount placeholder (JeremyCrookshank) Pull request description: Noticed that there wasn't a default value for the send amount. However if you put a value in or click the up and down arrows you're unable to get it blank again, so it makes sense that it has a default value. I hope this also makes it more clear that users can send less than 1 BTC if it shows the 8 decimal places PR:  ACKs for top commit: promag: ACK57e2edea0b
. GChuf: ACK57e2edea0b
laanwj: ACK57e2edea0b
, this is a surprisingly compact solution too Tree-SHA512: 354590d2a88231b8649f7ae985c8a7864d74ca0e1f8603cb1730ba46747084de90ee6285ce4d39ee04b054fb9cd2d78ebc71146f3af694c37a8a3aff7f051800
This commit is contained in:
commit
a75cb122ed
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ public:
|
|||
CAmount val = value(&valid);
|
||||
|
||||
currentUnit = unit;
|
||||
|
||||
lineEdit()->setPlaceholderText(BitcoinUnits::format(currentUnit, m_min_amount, false, BitcoinUnits::separatorAlways));
|
||||
if(valid)
|
||||
setValue(val);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue