Skip to content
Snippets Groups Projects
Commit 0d7bd720 authored by Kitty Barnett's avatar Kitty Barnett
Browse files

- changed : restore mini-map visibility to its previous state on @showminimap=y

--HG--
branch : RLVa
parent ac169253
No related branches found
No related tags found
No related merge requests found
......@@ -343,21 +343,24 @@ void RlvUIEnabler::onToggleShowMinimap()
{
bool fEnable = !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWMINIMAP);
// Hide the mini-map if it's currently visible
if ( (!fEnable) && (LLFloaterReg::floaterInstanceVisible("mini_map")) )
// Start or stop filtering opening the mini-map
if (!fEnable)
addGenericFloaterFilter("mini_map");
else
removeGenericFloaterFilter("mini_map");
// Hide the mini-map if it's currently visible (or restore it if it was previously visible)
static bool fPrevVisibile = false;
if ( (!fEnable) && ((fPrevVisibile = LLFloaterReg::floaterInstanceVisible("mini_map"))) )
LLFloaterReg::hideFloaterInstance("mini_map");
else if ( (fEnable) && (fPrevVisibile) )
LLFloaterReg::showFloaterInstance("mini_map");
// Enable/disable the "Mini-Map" bottom tray button
const LLBottomTray* pTray = LLBottomTray::getInstance();
LLView* pBtnView = (pTray) ? pTray->getChildView("mini_map_btn") : NULL;
if (pBtnView)
pBtnView->setEnabled(fEnable);
// Start or stop filtering opening the mini-map
if (!fEnable)
addGenericFloaterFilter("mini_map");
else
removeGenericFloaterFilter("mini_map");
}
// Checked: 2010-06-05 (RLVa-1.2.0d) | Modified: RLVa-1.2.0d
......
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