FIRE-21236: Toolbar button and main menu item obey the browser setting now because people were whining about this...
parent
6505497b14
commit
d40f6445e8
|
|
@ -312,8 +312,7 @@
|
|||
icon="Command_Grid_Status_Icon"
|
||||
label_ref="Command_Grid_Status_Label"
|
||||
tooltip_ref="Command_Grid_Status_Tooltip"
|
||||
execute_function="Floater.Toggle"
|
||||
execute_parameters="grid_status"
|
||||
execute_function="OpenGridStatus"
|
||||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="grid_status"
|
||||
is_enabled_function="GridCheck"
|
||||
|
|
@ -426,7 +425,7 @@
|
|||
is_running_function="Agent.getFlying"
|
||||
is_enabled_function="Agent.enableFlying"
|
||||
/>
|
||||
|
||||
|
||||
<command name="groundsit"
|
||||
available_in_toybox="true"
|
||||
icon="groundsit"
|
||||
|
|
@ -436,7 +435,7 @@
|
|||
is_running_function="Self.getForceSit"
|
||||
is_enabled_function="Self.EnableForceSit"
|
||||
/>
|
||||
|
||||
|
||||
<command name="soundexplorer"
|
||||
available_in_toybox="true"
|
||||
icon="sound_explorer"
|
||||
|
|
@ -447,7 +446,7 @@
|
|||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="sound_explorer"
|
||||
/>
|
||||
|
||||
|
||||
<command name="assetblacklist"
|
||||
available_in_toybox="true"
|
||||
icon="asset_blacklist"
|
||||
|
|
@ -458,7 +457,7 @@
|
|||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="fs_asset_blacklist"
|
||||
/>
|
||||
|
||||
|
||||
<command name="phototools"
|
||||
available_in_toybox="true"
|
||||
icon="phototools"
|
||||
|
|
@ -480,7 +479,7 @@
|
|||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="phototools_camera"
|
||||
/>
|
||||
|
||||
|
||||
<command name="contact_sets"
|
||||
available_in_toybox="true"
|
||||
icon="contact_sets"
|
||||
|
|
@ -489,7 +488,7 @@
|
|||
execute_function="SideTray.PanelPeopleTab"
|
||||
execute_parameters="contact_sets_panel"
|
||||
/>
|
||||
|
||||
|
||||
<command name="mouselook_view"
|
||||
available_in_toybox="true"
|
||||
icon="mouselook"
|
||||
|
|
@ -598,5 +597,5 @@
|
|||
execute_parameters="fs_group_titles"
|
||||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="fs_group_titles"
|
||||
/>
|
||||
/>
|
||||
</commands>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@
|
|||
#include "llxmltree.h"
|
||||
|
||||
std::map<std::string, std::string> LLFloaterGridStatus::sItemsMap;
|
||||
const std::string DEFAULT_GRID_STATUS_URL = "http://secondlife-status.statuspage.io/";
|
||||
// <FS:Ansariel> FIRE-21236 - Help Menu - Check Grid Status doesn't open using External Browser
|
||||
//const std::string DEFAULT_GRID_STATUS_URL = "http://secondlife-status.statuspage.io/";
|
||||
|
||||
LLFloaterGridStatus::LLFloaterGridStatus(const Params& key) :
|
||||
LLFloaterWebContent(key),
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@
|
|||
|
||||
class LLMediaCtrl;
|
||||
|
||||
// <FS:Ansariel> FIRE-21236 - Help Menu - Check Grid Status doesn't open using External Browser
|
||||
const std::string DEFAULT_GRID_STATUS_URL = "http://secondlife-status.statuspage.io/";
|
||||
|
||||
class LLFloaterGridStatus :
|
||||
public LLFloaterWebContent
|
||||
|
|
|
|||
|
|
@ -151,19 +151,20 @@
|
|||
#include "fslslbridge.h"
|
||||
#include "fscommon.h"
|
||||
#include "fsfloaterexport.h"
|
||||
#include "fsfloatercontacts.h" // <FS:Zi> Display group list in contacts floater
|
||||
#include "fspose.h" // <FS:CR> FIRE-4345: Undeform
|
||||
#include "fsfloatercontacts.h"
|
||||
#include "fsfloaterplacedetails.h"
|
||||
#include "fspose.h"
|
||||
#include "lfsimfeaturehandler.h"
|
||||
#include "llavatarpropertiesprocessor.h" // ## Zi: Texture Refresh
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llcheckboxctrl.h"
|
||||
#include "llfloatergridstatus.h"
|
||||
#include "llfloaterpreference.h"
|
||||
#include "lllogininstance.h"
|
||||
#include "llscenemonitor.h"
|
||||
#include "llsdserialize.h"
|
||||
#include "lltexturecache.h" // ## Zi: Texture Refresh
|
||||
#include "lllogininstance.h" // <FS:AW opensim destinations and avatar picker>
|
||||
#include "lltexturecache.h"
|
||||
#include "llvovolume.h"
|
||||
#include "particleeditor.h"
|
||||
#include "llfloaterpreference.h" //<FS:KC> Volume controls prefs
|
||||
#include "llcheckboxctrl.h" //<FS:KC> Volume controls prefs
|
||||
#include "llscenemonitor.h"
|
||||
#include "fsfloaterplacedetails.h"
|
||||
|
||||
using namespace LLAvatarAppearanceDefines;
|
||||
|
||||
|
|
@ -9672,6 +9673,20 @@ bool isGridFeatureEnabled(const LLSD& userdata)
|
|||
}
|
||||
// </FS:CR>
|
||||
|
||||
// <FS:Ansariel> FIRE-21236 - Help Menu - Check Grid Status doesn't open using External Browser
|
||||
void openGridStatus()
|
||||
{
|
||||
if (LLWeb::useExternalBrowser(DEFAULT_GRID_STATUS_URL))
|
||||
{
|
||||
LLWeb::loadURLExternal(DEFAULT_GRID_STATUS_URL);
|
||||
}
|
||||
else
|
||||
{
|
||||
LLFloaterReg::toggleInstance("grid_status");
|
||||
}
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
class LLToolsSelectOnlyMyObjects : public view_listener_t
|
||||
{
|
||||
bool handleEvent(const LLSD& userdata)
|
||||
|
|
@ -11036,6 +11051,7 @@ void initialize_menus()
|
|||
|
||||
enable.add("GridCheck", boost::bind(&checkIsGrid, _2)); // <FS:CR> Opensim menu item visibility control
|
||||
enable.add("GridFeatureCheck", boost::bind(&isGridFeatureEnabled, _2));
|
||||
commit.add("OpenGridStatus", boost::bind(&openGridStatus)); // <FS:Ansariel> FIRE-21236 - Help Menu - Check Grid Status doesn't open using External Browser
|
||||
|
||||
// Agent
|
||||
commit.add("Agent.toggleFlying", boost::bind(&LLAgent::toggleFlying));
|
||||
|
|
@ -11059,9 +11075,9 @@ void initialize_menus()
|
|||
commit.add("EditShape", boost::bind(&handle_edit_shape));
|
||||
commit.add("HoverHeight", boost::bind(&handle_hover_height));
|
||||
commit.add("EditPhysics", boost::bind(&handle_edit_physics));
|
||||
//-TT Client LSL Bridge
|
||||
// <FS:TT> Client LSL Bridge
|
||||
commit.add("RecreateLSLBridge", boost::bind(&handle_recreate_lsl_bridge));
|
||||
//-TT
|
||||
// </FS:TT>
|
||||
|
||||
// View menu
|
||||
view_listener_t::addMenu(new LLViewMouselook(), "View.Mouselook");
|
||||
|
|
|
|||
|
|
@ -2132,8 +2132,7 @@
|
|||
label="Check Grid status"
|
||||
name="Grid Status">
|
||||
<menu_item_check.on_click
|
||||
function="Floater.Toggle"
|
||||
parameter="grid_status" />
|
||||
function="OpenGridStatus"/>
|
||||
<menu_item_check.on_check
|
||||
function="Floater.Visible"
|
||||
parameter="grid_status" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue