EXP-1461 FIX Incoming Nearby chat not visible in chat toasts/bubbles to user when chat window is minimized with chat history opened

made minimizing and unminimizing nearby chat floater do the right thing
meow-7.2.2
Richard Linden 2011-10-26 11:51:52 -07:00
parent 24ab1e3f54
commit b0df4f1204
2 changed files with 10 additions and 0 deletions

View File

@ -399,6 +399,15 @@ void LLNearbyChatBar::onToggleNearbyChatPanel()
}
}
void LLNearbyChatBar::setMinimized(BOOL b)
{
if (b != LLFloater::isMinimized())
{
LLFloater::setMinimized(b);
getChildView("nearby_chat")->setVisible(!b);
}
}
void LLNearbyChatBar::onChatBoxCommit()
{
if (mChatBox->getText().length() > 0)

View File

@ -60,6 +60,7 @@ public:
static void sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate);
void showHistory();
/*virtual*/void setMinimized(BOOL b);
protected:
static BOOL matchChatTypeTrigger(const std::string& in_str, std::string* out_str);