Fix old namesystem code that broke initially setting Legacy (w/display) for everything in general.
Also cleans up old logic and directs the friends list to update when the user changes the namesystem for it specifically. Thanks to um... I think it was Deltek, who discovered this bug.
This commit is contained in:
@@ -142,19 +142,8 @@ void LLPanelGeneral::apply()
|
||||
LLComboBox* fade_out_combobox = getChild<LLComboBox>("fade_out_combobox");
|
||||
gSavedSettings.setS32("RenderName", fade_out_combobox->getCurrentIndex());
|
||||
|
||||
S32 namesystem_combobox_index = getChild<LLComboBox>("namesystem_combobox")->getCurrentIndex();
|
||||
BOOL show_resident = getChild<LLUICtrl>("show_resident_checkbox")->getValue();
|
||||
if(gSavedSettings.getS32("PhoenixNameSystem")!=namesystem_combobox_index || gSavedSettings.getBOOL("LiruShowLastNameResident")!=show_resident){
|
||||
gSavedSettings.setS32("PhoenixNameSystem", namesystem_combobox_index);
|
||||
gSavedSettings.setBOOL("LiruShowLastNameResident", show_resident);
|
||||
if(gAgent.getRegion()){
|
||||
if(namesystem_combobox_index<=0 || namesystem_combobox_index>2) LLAvatarNameCache::setUseDisplayNames(false);
|
||||
else LLAvatarNameCache::setUseDisplayNames(true);
|
||||
LLVOAvatar::invalidateNameTags(); // Remove all clienttags to get them updated
|
||||
|
||||
LLAvatarTracker::instance().updateFriends();
|
||||
}
|
||||
}
|
||||
gSavedSettings.setS32("PhoenixNameSystem", getChild<LLComboBox>("namesystem_combobox")->getCurrentIndex());
|
||||
gSavedSettings.setBOOL("LiruShowLastNameResident", getChild<LLUICtrl>("show_resident_checkbox")->getValue());
|
||||
|
||||
gSavedSettings.setString("LoginLocation", childGetValue("default_start_location").asString());
|
||||
gSavedSettings.setBOOL("ShowStartLocation", childGetValue("show_location_checkbox"));
|
||||
|
||||
Reference in New Issue
Block a user