Skip to content

Commit

Permalink
Get rid of prompt to unlock keychain on clicking Unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
purejava committed Feb 14, 2021
1 parent b065c7b commit d947ffa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public void storePassphrase(String key, CharSequence passphrase) throws Keychain

@Override
public char[] loadPassphrase(String key) throws KeychainAccessException {
if (getKeychainOrFail().isLocked()) {
return null;
}
char[] passphrase = getKeychainOrFail().loadPassphrase(key);
setPassphraseStored(key, passphrase != null);
return passphrase;
Expand Down

0 comments on commit d947ffa

Please sign in to comment.