Generate key data before download is requested.
Once ExportKeyStreamResource::handleRequest is entered, a 'Save As' dialog will be opened by the browser, even if key data is empty. This may happen if passphrase is wrong. If key data is generated before the download is actually requested, we can check if there is anything to push to browser and prevent the download request.
This commit is contained in:
@@ -136,6 +136,7 @@
|
||||
<message id='PreExportSecretKey'>Prepare download link</message>
|
||||
<message id='ExportSecretKey'>Export secret key</message>
|
||||
<message id='TTTExportSecretKey'>Requires GPGME >= 1.15.0</message>
|
||||
<message id='NoKeyData'>No data</message>
|
||||
|
||||
<message id='AddUid'>Add an identity</message>
|
||||
<message id='RevokeUid'>Revoke identity</message>
|
||||
|
||||
Reference in New Issue
Block a user