GUI: change password with locked wallet & invalid unlock password
This commit is contained in:
parent
c041a54078
commit
9088d3236b
1 changed files with 22 additions and 0 deletions
|
@ -1158,6 +1158,16 @@ wallet (wallet_a)
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
show_button_error (*change);
|
||||
change->setText ("Wallet is locked, unlock it");
|
||||
this->wallet.node.alarm.add (std::chrono::system_clock::now () + std::chrono::seconds (5), [this] ()
|
||||
{
|
||||
show_button_ok (*change);
|
||||
change->setText ("Set/Change password");
|
||||
});
|
||||
}
|
||||
});
|
||||
QObject::connect (change_rep, &QPushButton::released, [this] ()
|
||||
{
|
||||
|
@ -1217,6 +1227,18 @@ wallet (wallet_a)
|
|||
{
|
||||
password->clear ();
|
||||
}
|
||||
else
|
||||
{
|
||||
show_line_error (*password);
|
||||
show_button_error (*unlock);
|
||||
unlock->setText ("Invalid password");
|
||||
this->wallet.node.alarm.add (std::chrono::system_clock::now () + std::chrono::seconds (5), [this] ()
|
||||
{
|
||||
show_line_ok (*password);
|
||||
show_button_ok (*unlock);
|
||||
unlock->setText ("Unlock");
|
||||
});
|
||||
}
|
||||
});
|
||||
QObject::connect (lock, &QPushButton::released, [this] ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue