Hooked up RLVaTopLevelMenu setting so it actually works.
Changes to llviewermenu.cpp are better viewed without space changes ^Put together both RLVa Embedded and RLVa Main menus while building Advanced menu, labeling them RLVa; once the advanced menu is built and added to MenuBar, rlvMenuToggleVisible() is called. Added onChangedMenuLevel() to rlvcommon.cpp Added rlvMenuToggleVisible(), tweaked to only perform necessary operations for now, other parts left commented out for future use. Removed menu visibility handling from RlvHandler::setEnabled() NOTE: RLVa has only been updated in pertinent areas, from what I can tell we are a bit behind in other places, too.
This commit is contained in:
@@ -1054,14 +1054,6 @@ BOOL RlvHandler::setEnabled(BOOL fEnable)
|
||||
RlvUIEnabler::getInstance();
|
||||
}
|
||||
|
||||
// RELEASE-RLVa: LL defines CLIENT_MENU_NAME but we can't get to it from here so we need to keep those two in sync manually
|
||||
LLMenuGL* pClientMenu = NULL;
|
||||
if ( (gMenuBarView) && ((pClientMenu = gMenuBarView->getChildMenuByName("Advanced", FALSE)) != NULL) )
|
||||
{
|
||||
pClientMenu->setItemVisible("RLVa", m_fEnabled);
|
||||
pClientMenu->setItemEnabled("RLVa", m_fEnabled);
|
||||
}
|
||||
|
||||
return m_fEnabled; // Return enabled/disabled state
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user