Feature Request: Add an option to show the grid name in title

LiruGridInTitle is the debug
This commit is contained in:
Inusaito Sayori
2013-09-14 20:51:03 -04:00
parent 461f6f6ade
commit 9b984d425d
2 changed files with 14 additions and 0 deletions

View File

@@ -674,6 +674,19 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>LiruGridInTitle</key>
<map>
<key>Comment</key>
<string>Show grid name in the viewer window title (takes effect upon next login)</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>0</boolean>
<key>IsCOA</key>
<integer>1</integer>
</map>
<key>LiruGroupNoticeTimes</key>
<map>
<key>Comment</key>

View File

@@ -1551,6 +1551,7 @@ bool idle_startup()
{
name += " " + lastname;
}
if (gSavedSettings.getBOOL("LiruGridInTitle")) gWindowTitle += "- " + gHippoGridManager->getCurrentGrid()->getGridName() + " ";
gViewerWindow->getWindow()->setTitle(gWindowTitle += "- " + name);
// Pass the user information to the voice chat server interface.
LLVoiceClient::getInstance()->userAuthorized(name, gAgentID);