mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-12 09:37:47 +00:00
Send: disable openalias button on resolve
This commit is contained in:
parent
a9147d8da3
commit
0bc873c5cc
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,7 @@ void SendWidget::sendClicked() {
|
|||
}
|
||||
|
||||
void SendWidget::aliasClicked() {
|
||||
ui->btn_openAlias->setEnabled(false);
|
||||
auto alias = ui->lineAddress->text();
|
||||
WalletManager::instance()->resolveOpenAliasAsync(alias);
|
||||
}
|
||||
|
@ -255,6 +256,8 @@ double SendWidget::amountDouble() {
|
|||
}
|
||||
|
||||
void SendWidget::onOpenAliasResolved(const QString &openAlias, const QString &address, bool dnssecValid) {
|
||||
ui->btn_openAlias->setEnabled(true);
|
||||
|
||||
if (address.isEmpty()) {
|
||||
this->onOpenAliasResolveError("Could not resolve OpenAlias.");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue