Fix radar name format dropdown list in Vintage skin having no effect until relog
parent
d75c1117f0
commit
b9e48bbdc7
|
|
@ -101,6 +101,8 @@ FSRadar::FSRadar() :
|
|||
// Use the callback from LLAvatarNameCache here or we might update the names too early!
|
||||
LLAvatarNameCache::addUseDisplayNamesCallback(boost::bind(&FSRadar::updateNames, this));
|
||||
gSavedSettings.getControl("NameTagShowUsernames")->getSignal()->connect(boost::bind(&FSRadar::updateNames, this));
|
||||
|
||||
gSavedSettings.getControl("RadarNameFormat")->getSignal()->connect(boost::bind(&FSRadar::updateNames, this));
|
||||
}
|
||||
|
||||
FSRadar::~FSRadar()
|
||||
|
|
@ -832,12 +834,6 @@ void FSRadar::onRadarNameFmtClicked(const LLSD& userdata)
|
|||
{
|
||||
gSavedSettings.setU32("RadarNameFormat", FSRADAR_NAMEFORMAT_USERNAME_DISPLAYNAME);
|
||||
}
|
||||
|
||||
FSRadar* instance = FSRadar::getInstance();
|
||||
if (instance)
|
||||
{
|
||||
instance->updateNames();
|
||||
}
|
||||
}
|
||||
|
||||
//static
|
||||
|
|
|
|||
Loading…
Reference in New Issue