[NameUI] Remove pointless is_group check in refresh
This commit is contained in:
@@ -123,7 +123,7 @@ void LLNameUI::setNameText()
|
||||
setText(got_name ? name : mInitialValue);
|
||||
}
|
||||
|
||||
void LLNameUI::refresh(const LLUUID& id, const std::string& full_name, bool is_group)
|
||||
void LLNameUI::refresh(const LLUUID& id, const std::string& full_name)
|
||||
{
|
||||
if (id == mNameID)
|
||||
{
|
||||
@@ -131,12 +131,11 @@ void LLNameUI::refresh(const LLUUID& id, const std::string& full_name, bool is_g
|
||||
}
|
||||
}
|
||||
|
||||
void LLNameUI::refreshAll(const LLUUID& id, const std::string& full_name, bool is_group)
|
||||
void LLNameUI::refreshAll(const LLUUID& id, const std::string& full_name)
|
||||
{
|
||||
if (!is_group) return;
|
||||
for (auto box : sInstances)
|
||||
{
|
||||
box->refresh(id, full_name, is_group);
|
||||
box->refresh(id, full_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ struct LLNameUI : public LFIDBearer
|
||||
void setIsGroup(bool is_group);
|
||||
void setNameID(const LLUUID& name_id, bool is_group);
|
||||
void setNameText(); // Sets the name to whatever the name cache has at the moment
|
||||
void refresh(const LLUUID& id, const std::string& full_name, bool is_group);
|
||||
static void refreshAll(const LLUUID& id, const std::string& full_name, bool is_group);
|
||||
void refresh(const LLUUID& id, const std::string& name);
|
||||
static void refreshAll(const LLUUID& id, const std::string& name);
|
||||
|
||||
void showProfile();
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ void transition_back_to_login_panel(const std::string& emsg);
|
||||
|
||||
void callback_cache_name(const LLUUID& id, const std::string& full_name, bool is_group)
|
||||
{
|
||||
LLNameUI::refreshAll(id, full_name, is_group);
|
||||
LLNameUI::refreshAll(id, full_name);
|
||||
|
||||
// TODO: Actually be intelligent about the refresh.
|
||||
// For now, just brute force refresh the dialogs.
|
||||
|
||||
Reference in New Issue
Block a user