mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
If credentials are ok, do not fetch them again from store.
This commit is contained in:
parent
381aa701ce
commit
915764cc52
1 changed files with 6 additions and 0 deletions
|
@ -128,6 +128,12 @@ void CredentialStore::fetchCredentials()
|
|||
break;
|
||||
}
|
||||
case CredentialStore::KeyChain: {
|
||||
// If the credentials are here already, return.
|
||||
if( _state == Ok ) {
|
||||
emit(fetchCredentialsFinished(true));
|
||||
return;
|
||||
}
|
||||
// otherwise fetch asynchronious.
|
||||
#ifdef WITH_QTKEYCHAIN
|
||||
_state = AsyncFetching;
|
||||
if( !_user.isEmpty() ) {
|
||||
|
|
Loading…
Reference in a new issue