qt: Add SubFeeFromAmount option

This commit is contained in:
Prateek Sancheti
2021-07-29 21:57:57 +05:30
parent 6499928bfb
commit ad28b66e98
5 changed files with 28 additions and 1 deletions

View File

@@ -97,7 +97,9 @@ void SendCoinsEntry::clear()
ui->payTo->clear();
ui->addAsLabel->clear();
ui->payAmount->clear();
ui->checkboxSubtractFeeFromAmount->setCheckState(Qt::Unchecked);
if (model && model->getOptionsModel()) {
ui->checkboxSubtractFeeFromAmount->setChecked(model->getOptionsModel()->getSubFeeFromAmount());
}
ui->messageTextLabel->clear();
ui->messageTextLabel->hide();
ui->messageLabel->hide();