Use `getKey` to actually retrieve key. (#332)
`hasKey` just validates it's available
This commit is contained in:
parent
62b5a05c40
commit
10643be8bb
|
@ -418,6 +418,8 @@ export class Program extends BaseProgram {
|
|||
} else {
|
||||
this.processResponse(Response.error('Vault is locked.'), true);
|
||||
}
|
||||
} else if (!this.main.cryptoService.hasKeyInMemory()) {
|
||||
await this.main.cryptoService.getKey();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue