Skip to content
Snippets Groups Projects
Commit 0a6570fe authored by Yuri Chebotarev's avatar Yuri Chebotarev
Browse files

fix normal EXT-2893 Nearby toast should hide after log became opened

--HG--
branch : product-engine
parent 00fe55c9
No related branches found
No related tags found
No related merge requests found
...@@ -228,13 +228,23 @@ bool LLNearbyChat::onNearbyChatCheckContextMenuItem(const LLSD& userdata) ...@@ -228,13 +228,23 @@ bool LLNearbyChat::onNearbyChatCheckContextMenuItem(const LLSD& userdata)
return false; return false;
} }
void LLNearbyChat::onOpen(const LLSD& key ) void LLNearbyChat::setVisible(BOOL visible)
{ {
LLNotificationsUI::LLScreenChannelBase* chat_channel = LLNotificationsUI::LLChannelManager::getInstance()->findChannelByID(LLUUID(gSavedSettings.getString("NearByChatChannelUUID"))); if(visible)
if(chat_channel)
{ {
chat_channel->removeToastsFromChannel(); LLNotificationsUI::LLScreenChannelBase* chat_channel = LLNotificationsUI::LLChannelManager::getInstance()->findChannelByID(LLUUID(gSavedSettings.getString("NearByChatChannelUUID")));
if(chat_channel)
{
chat_channel->removeToastsFromChannel();
}
} }
LLDockableFloater::setVisible(visible);
}
void LLNearbyChat::onOpen(const LLSD& key )
{
LLDockableFloater::onOpen(key);
} }
void LLNearbyChat::setRect (const LLRect &rect) void LLNearbyChat::setRect (const LLRect &rect)
......
...@@ -53,6 +53,8 @@ class LLNearbyChat: public LLDockableFloater ...@@ -53,6 +53,8 @@ class LLNearbyChat: public LLDockableFloater
/*virtual*/ void onOpen (const LLSD& key); /*virtual*/ void onOpen (const LLSD& key);
/*virtual*/ void setVisible(BOOL visible);
virtual void setRect (const LLRect &rect); virtual void setRect (const LLRect &rect);
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment