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 {
|
||||
const char FaceMeshURL[] = "mesh";
|
||||
const char UUID[] = "";
|
||||
const char UUID[] = "uuid";
|
||||
}
|
||||
|
||||
#endif /* defined(__hifi__DataServerClient__) */
|
||||
|
|
|
@ -527,6 +527,7 @@ void Menu::saveSettings(QSettings* settings) {
|
|||
|
||||
scanMenuBar(&saveAction, settings);
|
||||
Application::getInstance()->getAvatar()->saveData(settings);
|
||||
Application::getInstance()->getProfile()->saveData(settings);
|
||||
Application::getInstance()->getSwatch()->saveData(settings);
|
||||
|
||||
// ask the NodeList to save its data
|
||||
|
|
|
@ -29,8 +29,10 @@ void Profile::setUsername(const QString &username) {
|
|||
this->clear();
|
||||
_username = username;
|
||||
|
||||
// we've been given a new username, ask the data-server for our UUID
|
||||
DataServerClient::getClientValueForKey(DataServerKey::UUID);
|
||||
if (!_username.isEmpty()) {
|
||||
// we've been given a new username, ask the data-server for our UUID
|
||||
DataServerClient::getClientValueForKey(DataServerKey::UUID);
|
||||
}
|
||||
}
|
||||
|
||||
void Profile::saveData(QSettings* settings) {
|
||||
|
|
Loading…
Reference in a new issue