Converted frequently occuring setting lookups to LLCachedControl
Added LLObjectList::getAvatar(LLUUID) for type-safe and quicker lookup Added F32 overload to LLSD because using F64 needlessly is silly. (And its lack of F32 overload caused issues with LLCachedControl<F32>)
This commit is contained in:
@@ -124,7 +124,8 @@ void handle_inventory(void*)
|
||||
void handle_chat(void*)
|
||||
{
|
||||
// give focus to chatbar if it's open but not focused
|
||||
if (gSavedSettings.getBOOL("ChatVisible") && gFocusMgr.childHasKeyboardFocus(gChatBar))
|
||||
static LLCachedControl<bool> chat_visible("ChatVisible",true);
|
||||
if (chat_visible && gFocusMgr.childHasKeyboardFocus(gChatBar))
|
||||
{
|
||||
LLChatBar::stopChat();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user