Template fun to compress our legacy menu<->floater glue.
This commit is contained in:
@@ -45,7 +45,7 @@ SLFloaterMediaFilter* SLFloaterMediaFilter::sInstance = NULL;
|
||||
bool SLFloaterMediaFilter::sIsWhitelist = false;
|
||||
bool SLFloaterMediaFilter::sShowIPs = false;
|
||||
|
||||
SLFloaterMediaFilter::SLFloaterMediaFilter() : LLFloater(std::string("media filter")), mIsDirty(false)
|
||||
SLFloaterMediaFilter::SLFloaterMediaFilter(const LLSD& key) : LLFloater(std::string("media filter")), mIsDirty(false)
|
||||
{
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_media_filter.xml");
|
||||
}
|
||||
@@ -206,38 +206,6 @@ void SLFloaterMediaFilter::setDirty()
|
||||
}
|
||||
}
|
||||
|
||||
BOOL SLFloaterMediaFilter::instanceVisible()
|
||||
{
|
||||
if (sInstance)
|
||||
{
|
||||
return sInstance->getVisible();
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
void SLFloaterMediaFilter::toggleInstance()
|
||||
{
|
||||
if (sInstance)
|
||||
{
|
||||
if (sInstance->getVisible())
|
||||
{
|
||||
sInstance->destroy();
|
||||
}
|
||||
else
|
||||
{
|
||||
sInstance->open();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sInstance = new SLFloaterMediaFilter();
|
||||
sInstance->open();
|
||||
}
|
||||
}
|
||||
|
||||
void SLFloaterMediaFilter::onClearLists(void* data)
|
||||
{
|
||||
LLViewerParcelMedia::clearDomainFilterList();
|
||||
|
||||
Reference in New Issue
Block a user