//--------------------------------------------------------------------------------- void LLSysWellWindow::setVisible(BOOL visible) { if (visible) { if (NULL == getDockControl() && getDockTongue().notNull()) { setDockControl(new LLDockControl( LLBottomTray::getInstance()->getChild<LLView>(getAnchorViewName()), this, getDockTongue(), LLDockControl::TOP, boost::bind(&LLSysWellWindow::getAllowedRect, this, _1))); } } // do not show empty window if (NULL == mMessageList || isWindowEmpty()) visible = FALSE; LLTransientDockableFloater::setVisible(visible); // update notification channel state if(mChannel) { mChannel->updateShowToastsState(); mChannel->redrawToasts(); } if (visible) { releaseNewMessagesState(); } }
//--------------------------------------------------------------------------------- void LLSysWellWindow::setVisible(BOOL visible) { if (visible) { if (NULL == getDockControl() && getDockTongue().notNull()) { setDockControl(new LLDockControl( LLChicletBar::getInstance()->getChild<LLView>(getAnchorViewName()), this, getDockTongue(), LLDockControl::BOTTOM)); } } // do not show empty window if (NULL == mMessageList || isWindowEmpty()) visible = FALSE; LLTransientDockableFloater::setVisible(visible); // update notification channel state initChannel(); // make sure the channel still exists if(mChannel) { mChannel->updateShowToastsState(); mChannel->redrawToasts(); } if (visible) { releaseNewMessagesState(); } }