SL-16234 FIXED Frame stall caused by unnecessary building the floater when exiting viewer

master
Mnikolenko Productengine 2021-10-22 16:09:41 +03:00
parent e774bffb28
commit f2eba1909d
2 changed files with 9 additions and 1 deletions

View File

@ -346,6 +346,8 @@ public:
// handle refocusing.
static void closeFrontmostFloater();
static bool isQuitRequested() { return sQuitting; }
// LLNotification::Params contextualNotification(const std::string& name)
// {
// return LLNotification::Params(name).context(mNotificationContext);

View File

@ -723,7 +723,13 @@ void LLFloaterIMContainer::setMinimized(BOOL b)
}
void LLFloaterIMContainer::setVisible(BOOL visible)
{ LLFloaterIMNearbyChat* nearby_chat;
{
if (LLFloater::isQuitRequested())
{
return;
}
LLFloaterIMNearbyChat* nearby_chat;
if (visible)
{
// Make sure we have the Nearby Chat present when showing the conversation container