mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +02:00
add user UUID to application window title
This commit is contained in:
parent
7a3ce7c89d
commit
8fc55bd196
2 changed files with 9 additions and 12 deletions
|
@ -4003,18 +4003,12 @@ void Application::setMenuShortcutsEnabled(bool enabled) {
|
|||
}
|
||||
|
||||
void Application::updateWindowTitle(){
|
||||
QString title = "";
|
||||
|
||||
QString buildVersion = " (build " + applicationVersion() + ")";
|
||||
|
||||
QString username = _profile.getUsername();
|
||||
if(!username.isEmpty()){
|
||||
title += username;
|
||||
title += " @ ";
|
||||
}
|
||||
|
||||
title += NodeList::getInstance()->getDomainHostname();
|
||||
title += buildVersion;
|
||||
QString buildVersion = " (build " + applicationVersion() + ")";
|
||||
NodeList* nodeList = NodeList::getInstance();
|
||||
|
||||
QString title = QString() + _profile.getUsername() + " " + nodeList->getOwnerUUID().toString()
|
||||
+ " @ " + nodeList->getDomainHostname() + buildVersion;
|
||||
|
||||
qDebug("Application title set to: %s", title.toStdString().c_str());
|
||||
_window->setWindowTitle(title);
|
||||
|
|
|
@ -53,7 +53,10 @@ void Profile::setUUID(const QUuid& uuid) {
|
|||
|
||||
// when the UUID is changed we need set it appropriately on the NodeList instance
|
||||
NodeList::getInstance()->setOwnerUUID(uuid);
|
||||
}
|
||||
|
||||
// ask for a window title update so the new UUID is presented
|
||||
Application::getInstance()->updateWindowTitle();
|
||||
}
|
||||
}
|
||||
|
||||
void Profile::setFaceModelURL(const QUrl& faceModelURL) {
|
||||
|
|
Loading…
Reference in a new issue