Updated the code to allow people to control whether to get client definition updates, now that the updater works.

Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
Beeks
2010-09-18 21:23:15 -04:00
parent 1c421bdb50
commit ae03b4c58b
4 changed files with 87 additions and 19 deletions

View File

@@ -48,6 +48,7 @@
#include "llemote.h"
#include "llfirstuse.h"
#include "llfloaterchat.h"
#include "llheadrotmotion.h"
#include "llhudeffecttrail.h"
@@ -1525,7 +1526,17 @@ void LLVOAvatar::initClass()
}
{
updateClientTags();
if (gSavedSettings.getBOOL("AscentUpdateTagsOnLoad"))
{
if (updateClientTags())
{
LLChat chat;
chat.mSourceType = CHAT_SOURCE_SYSTEM;
chat.mText = llformat("Client definitions are up-to-date.");
LLFloaterChat::addChat(chat);
}
}
loadClientTags();
}
}