mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Use display unit instead of hardcoded DRK for darksend warning
This commit is contained in:
parent
36acf7e57a
commit
a80da619a7
@ -454,9 +454,14 @@ void OverviewPage::darksendReset(){
|
|||||||
void OverviewPage::toggleDarksend(){
|
void OverviewPage::toggleDarksend(){
|
||||||
if(!fEnableDarksend){
|
if(!fEnableDarksend){
|
||||||
int64_t balance = pwalletMain->GetBalance();
|
int64_t balance = pwalletMain->GetBalance();
|
||||||
if(balance < 1.49*COIN){
|
float minAmount = 1.49 * COIN;
|
||||||
|
if(balance < minAmount){
|
||||||
|
QString strMinAmount(
|
||||||
|
BitcoinUnits::formatWithUnit(
|
||||||
|
walletModel->getOptionsModel()->getDisplayUnit(),
|
||||||
|
minAmount));
|
||||||
QMessageBox::warning(this, tr("Darksend"),
|
QMessageBox::warning(this, tr("Darksend"),
|
||||||
tr("Darksend requires at least 1.5 DRK to use."),
|
tr("Darksend requires at least %1 to use.").arg(strMinAmount),
|
||||||
QMessageBox::Ok, QMessageBox::Ok);
|
QMessageBox::Ok, QMessageBox::Ok);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user