Fix any and all crashes relating to initialization of UI components that may need the name cache to be initialized already.
This commit is contained in:
@@ -1785,45 +1785,6 @@ bool idle_startup()
|
|||||||
LLRect window(0, gViewerWindow->getWindowHeight(), gViewerWindow->getWindowWidth(), 0);
|
LLRect window(0, gViewerWindow->getWindowHeight(), gViewerWindow->getWindowWidth(), 0);
|
||||||
gViewerWindow->adjustControlRectanglesForFirstUse(window);
|
gViewerWindow->adjustControlRectanglesForFirstUse(window);
|
||||||
|
|
||||||
if (gSavedSettings.getBOOL("ShowMiniMap"))
|
|
||||||
{
|
|
||||||
LLFloaterMap::showInstance();
|
|
||||||
}
|
|
||||||
if (gSavedSettings.getBOOL("ShowRadar"))
|
|
||||||
{
|
|
||||||
LLFloaterAvatarList::showInstance();
|
|
||||||
}
|
|
||||||
// <edit>
|
|
||||||
else if (gSavedSettings.getBOOL("RadarKeepOpen"))
|
|
||||||
{
|
|
||||||
LLFloaterAvatarList::getInstance()->close();
|
|
||||||
}
|
|
||||||
if (gSavedSettings.getBOOL("SHShowMediaTicker"))
|
|
||||||
{
|
|
||||||
SHFloaterMediaTicker::showInstance();
|
|
||||||
}
|
|
||||||
// </edit>
|
|
||||||
if (gSavedSettings.getBOOL("ShowCameraControls"))
|
|
||||||
{
|
|
||||||
LLFloaterCamera::showInstance();
|
|
||||||
}
|
|
||||||
if (gSavedSettings.getBOOL("ShowMovementControls"))
|
|
||||||
{
|
|
||||||
LLFloaterMove::showInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gSavedSettings.getBOOL("ShowActiveSpeakers"))
|
|
||||||
{
|
|
||||||
LLFloaterActiveSpeakers::showInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gSavedSettings.getBOOL("ShowBeaconsFloater"))
|
|
||||||
{
|
|
||||||
LLFloaterBeacons::showInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!gNoRender)
|
if (!gNoRender)
|
||||||
{
|
{
|
||||||
//Set up cloud rendertypes. Passed argument is unused.
|
//Set up cloud rendertypes. Passed argument is unused.
|
||||||
@@ -1874,6 +1835,43 @@ bool idle_startup()
|
|||||||
LLVoiceClient::getInstance()->updateSettings();
|
LLVoiceClient::getInstance()->updateSettings();
|
||||||
display_startup();
|
display_startup();
|
||||||
|
|
||||||
|
if (gSavedSettings.getBOOL("ShowMiniMap"))
|
||||||
|
{
|
||||||
|
LLFloaterMap::showInstance();
|
||||||
|
}
|
||||||
|
if (gSavedSettings.getBOOL("ShowRadar"))
|
||||||
|
{
|
||||||
|
LLFloaterAvatarList::showInstance();
|
||||||
|
}
|
||||||
|
// <edit>
|
||||||
|
else if (gSavedSettings.getBOOL("RadarKeepOpen"))
|
||||||
|
{
|
||||||
|
LLFloaterAvatarList::getInstance()->close();
|
||||||
|
}
|
||||||
|
if (gSavedSettings.getBOOL("SHShowMediaTicker"))
|
||||||
|
{
|
||||||
|
SHFloaterMediaTicker::showInstance();
|
||||||
|
}
|
||||||
|
// </edit>
|
||||||
|
if (gSavedSettings.getBOOL("ShowCameraControls"))
|
||||||
|
{
|
||||||
|
LLFloaterCamera::showInstance();
|
||||||
|
}
|
||||||
|
if (gSavedSettings.getBOOL("ShowMovementControls"))
|
||||||
|
{
|
||||||
|
LLFloaterMove::showInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gSavedSettings.getBOOL("ShowActiveSpeakers"))
|
||||||
|
{
|
||||||
|
LLFloaterActiveSpeakers::showInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gSavedSettings.getBOOL("ShowBeaconsFloater"))
|
||||||
|
{
|
||||||
|
LLFloaterBeacons::showInstance();
|
||||||
|
}
|
||||||
|
|
||||||
// *Note: this is where gWorldMap used to be initialized.
|
// *Note: this is where gWorldMap used to be initialized.
|
||||||
|
|
||||||
// register null callbacks for audio until the audio system is initialized
|
// register null callbacks for audio until the audio system is initialized
|
||||||
|
|||||||
Reference in New Issue
Block a user