mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-11 02:34:10 +02:00
parent
575935ded0
commit
87bd26bf6c
@ -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 New Issue
Block a user