Handle further queries of the backend for disabled keyrings

This commit is contained in:
Ralph Plawetzki
2022-09-15 18:22:46 +02:00
parent 17d3d7307d
commit b34bf6f161

View File

@@ -93,6 +93,8 @@ public class KeychainManager implements KeychainAccessProvider {
* @throws KeychainAccessException
*/
public boolean isPassphraseStored(String key) throws KeychainAccessException {
// check if keyrings are disabled; in this case we don't need to ask the backend
if (settings.disableAllKeyrings().get()) return false;
char[] storedPw = null;
try {
storedPw = getKeychainOrFail().loadPassphrase(key);