Expose MyAvatar.sessionUUID to JS
Showing the changes to interface/src/Application.cpp (1 of 9 files). Show all
Unified · Split
| @@ -232,6 +232,7 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : · 231 unmodified lines | ||
| 232 | 232 | connect(nodeList, SIGNAL(nodeAdded(SharedNodePointer)), &_voxels, SLOT(nodeAdded(SharedNodePointer))); |
| 233 | 233 | connect(nodeList, SIGNAL(nodeKilled(SharedNodePointer)), &_voxels, SLOT(nodeKilled(SharedNodePointer))); |
| 234 | 234 | connect(nodeList, &NodeList::uuidChanged, this, &Application::updateWindowTitle); |
| 235 | + connect(nodeList, SIGNAL(uuidChanged(const QUuid&)), _myAvatar, SLOT(setSessionUUID(const QUuid&))); | |
| 235 | 236 | connect(nodeList, &NodeList::limitOfSilentDomainCheckInsReached, nodeList, &NodeList::reset); |
| 236 | 237 | |
| 237 | 238 | // connect to appropriate slots on AccountManager |
| @@ -1216,8 +1217,6 @@ void Application::timer() { · 978 unmodified lines | ||
| 1216 | 1217 | |
| 1217 | 1218 | // ask the node list to check in with the domain server |
| 1218 | 1219 | NodeList::getInstance()->sendDomainServerCheckIn(); |
| 1219 | − | |
| 1220 | − | |
| 1221 | 1220 | } |
| 1222 | 1221 | |
| 1223 | 1222 | void Application::idle() { |