mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 23:02:24 +02:00
Don't post account settings after pull
Account settings would always get pushed after a pull even if they hadn't changed
This commit is contained in:
parent
8325ee2c8e
commit
390c7b14c9
1 changed files with 7 additions and 0 deletions
|
@ -808,6 +808,8 @@ void AccountManager::requestAccountSettings() {
|
|||
return;
|
||||
}
|
||||
|
||||
qCDebug(networking) << "Requesting the Account Settings from the Metaverse API";
|
||||
|
||||
QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance();
|
||||
|
||||
QUrl lockerURL = _authURL;
|
||||
|
@ -834,6 +836,9 @@ void AccountManager::requestAccountSettingsFinished() {
|
|||
if (rootObject.contains("status") && rootObject["status"].toString() == "success") {
|
||||
if (rootObject.contains("data") && rootObject["data"].isObject()) {
|
||||
_settings.unpack(rootObject["data"].toObject());
|
||||
_lastSuccessfulSyncTimestamp = _settings.lastChangeTimestamp();
|
||||
|
||||
qCDebug(networking) << "Received the Account Settings from the Metaverse API";
|
||||
|
||||
emit accountSettingsLoaded();
|
||||
} else {
|
||||
|
@ -874,6 +879,8 @@ void AccountManager::postAccountSettings() {
|
|||
return;
|
||||
}
|
||||
|
||||
qDebug() << "Account Settings have changed, pushing them to the Metaverse API";
|
||||
|
||||
QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance();
|
||||
|
||||
QUrl lockerURL = _authURL;
|
||||
|
|
Loading…
Reference in a new issue