mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
giving 30 secs of time to create identity before clearing PGP passphrase cache
This commit is contained in:
parent
af696639cc
commit
1bbde46c4a
@ -659,8 +659,10 @@ void GenCertDialog::genPerson()
|
||||
RsInit::LoadPassword(sslPasswd);
|
||||
if (Rshare::loadCertificate(sslId, false)) {
|
||||
|
||||
// Now clear the cached passphrase
|
||||
rsNotify->clearPgpPassphrase();
|
||||
// Normally we should clear the cached passphrase as soon as possible. However,some other GUI components may still need it at start.
|
||||
// (csoler) This is really bad: we have to guess that 30 secs will be enough. I have no better way to do this.
|
||||
|
||||
QTimer::singleShot(30000, []() { rsNotify->clearPgpPassphrase(); } );
|
||||
|
||||
accept();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user