mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
parent
575935ded0
commit
87bd26bf6c
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
#include "configfile.h"
|
||||
#include "sslerrordialog.h"
|
||||
#include "proxyauthhandler.h"
|
||||
#include "common/asserts.h"
|
||||
#include <theme.h>
|
||||
#include <creds/credentialsfactory.h>
|
||||
#include <creds/abstractcredentials.h>
|
||||
|
@ -85,6 +86,10 @@ bool AccountManager::restore()
|
|||
if (auto acc = loadAccountHelper(*settings)) {
|
||||
acc->_id = accountId;
|
||||
if (auto accState = AccountState::loadFromSettings(acc, *settings)) {
|
||||
auto jar = qobject_cast<CookieJar*>(acc->_am->cookieJar());
|
||||
ASSERT(jar);
|
||||
if (jar)
|
||||
jar->restore(acc->cookieJarPath());
|
||||
addAccountState(accState);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue