mirror of
https://github.com/overte-org/overte.git
synced 2025-07-22 16:53:31 +02:00
save profile to settings, fix UUID storage
This commit is contained in:
parent
ae59ce22b7
commit
d843285db7
3 changed files with 6 additions and 3 deletions
|
@ -32,7 +32,7 @@ private:
|
||||||
|
|
||||||
namespace DataServerKey {
|
namespace DataServerKey {
|
||||||
const char FaceMeshURL[] = "mesh";
|
const char FaceMeshURL[] = "mesh";
|
||||||
const char UUID[] = "";
|
const char UUID[] = "uuid";
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* defined(__hifi__DataServerClient__) */
|
#endif /* defined(__hifi__DataServerClient__) */
|
||||||
|
|
|
@ -527,6 +527,7 @@ void Menu::saveSettings(QSettings* settings) {
|
||||||
|
|
||||||
scanMenuBar(&saveAction, settings);
|
scanMenuBar(&saveAction, settings);
|
||||||
Application::getInstance()->getAvatar()->saveData(settings);
|
Application::getInstance()->getAvatar()->saveData(settings);
|
||||||
|
Application::getInstance()->getProfile()->saveData(settings);
|
||||||
Application::getInstance()->getSwatch()->saveData(settings);
|
Application::getInstance()->getSwatch()->saveData(settings);
|
||||||
|
|
||||||
// ask the NodeList to save its data
|
// ask the NodeList to save its data
|
||||||
|
|
|
@ -29,8 +29,10 @@ void Profile::setUsername(const QString &username) {
|
||||||
this->clear();
|
this->clear();
|
||||||
_username = username;
|
_username = username;
|
||||||
|
|
||||||
// we've been given a new username, ask the data-server for our UUID
|
if (!_username.isEmpty()) {
|
||||||
DataServerClient::getClientValueForKey(DataServerKey::UUID);
|
// we've been given a new username, ask the data-server for our UUID
|
||||||
|
DataServerClient::getClientValueForKey(DataServerKey::UUID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Profile::saveData(QSettings* settings) {
|
void Profile::saveData(QSettings* settings) {
|
||||||
|
|
Loading…
Reference in a new issue