Address Issue 1761: Grid status from Help menu
Adds Grid Status... item to Help menu Translators: add WebLaunchGridStatus notification translation to notifications.xml add Grid Status... menu item translation to menu_viewer.xml and menu_login.xml Adds menu visibility function "VisibleSecondLife" for hiding things that shouldn't be shown on OpenSim Hides SL issue tracker and wiki menu items on non-SL grids
This commit is contained in:
@@ -8867,6 +8867,15 @@ class SinguVisibleDebugConsole : public view_listener_t
|
||||
}
|
||||
};
|
||||
|
||||
class VisibleSecondLife : public view_listener_t
|
||||
{
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
gMenuHolder->findControl(userdata["control"].asString())->setValue(gHippoGridManager->getCurrentGrid()->isSecondLife());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class VisibleNotSecondLife : public view_listener_t
|
||||
{
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
@@ -9527,6 +9536,7 @@ void initialize_menus()
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
addMenu(new VisibleSecondLife(), "VisibleSecondLife");
|
||||
addMenu(new VisibleNotSecondLife(), "VisibleNotSecondLife");
|
||||
|
||||
// List-bound menus
|
||||
|
||||
Reference in New Issue
Block a user