mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:55:01 +02:00
Sync settings on logout/shutdown
This commit is contained in:
parent
86196cfd62
commit
282aa70db3
1 changed files with 2 additions and 0 deletions
|
@ -95,12 +95,14 @@ AccountManager::AccountManager(UserAgentGetter userAgentGetter) :
|
|||
connect(this, SIGNAL(loginComplete(QUrl)), _postSettingsTimer, SLOT(start()));
|
||||
connect(this, &AccountManager::logoutComplete, _postSettingsTimer, &QTimer::stop);
|
||||
connect(_postSettingsTimer, &QTimer::timeout, this, &AccountManager::postAccountSettings);
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &AccountManager::postAccountSettings);
|
||||
}
|
||||
|
||||
const QString DOUBLE_SLASH_SUBSTITUTE = "slashslash";
|
||||
const QString ACCOUNT_MANAGER_REQUESTED_SCOPE = "owner";
|
||||
|
||||
void AccountManager::logout() {
|
||||
postAccountSettings();
|
||||
|
||||
// a logout means we want to delete the DataServerAccountInfo we currently have for this URL, in-memory and in file
|
||||
_accountInfo = DataServerAccountInfo();
|
||||
|
|
Loading…
Reference in a new issue