Skip to content
Snippets Groups Projects
Commit 3816ece8 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix debug settings floater

parent f015c88a
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,8 @@
icon="Command_Debug_Icon"
label_ref="Command_Debug_Label"
tooltip_ref="Command_Debug_Tooltip"
execute_function="Floater.ToggleOrBringToFront"
execute_parameters="settings_debug"
execute_function="Advanced.ToggleDebugSettings"
execute_parameters="all"
is_running_function="Floater.IsOpen"
is_running_parameters="settings_debug"
/>
......
......@@ -40,7 +40,7 @@
LLFloaterSettingsDebug::LLFloaterSettingsDebug(const LLSD& key)
: LLFloater(key.asString().empty() ? LLSD("all") : key),
: LLFloater(key),
mSettingList(NULL)
{
mCommitCallbackRegistrar.add("CommitSettings", boost::bind(&LLFloaterSettingsDebug::onCommitSettings, this));
......
......@@ -2378,6 +2378,14 @@ class LLAdvancedShowDebugSettings : public view_listener_t
}
};
class LLAdvancedToggleDebugSettings : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
{
LLFloaterReg::toggleInstanceOrBringToFront("settings_debug",userdata);
return true;
}
};
////////////////////////
......@@ -9933,6 +9941,7 @@ void initialize_menus()
view_listener_t::addMenu(new LLAdvancedCompressImage(), "Advanced.CompressImage");
view_listener_t::addMenu(new LLAdvancedCompressFileTest(), "Advanced.CompressFileTest");
view_listener_t::addMenu(new LLAdvancedShowDebugSettings(), "Advanced.ShowDebugSettings");
view_listener_t::addMenu(new LLAdvancedShowDebugSettings(), "Advanced.ToggleDebugSettings");
view_listener_t::addMenu(new LLAdvancedEnableViewAdminOptions(), "Advanced.EnableViewAdminOptions");
view_listener_t::addMenu(new LLAdvancedToggleViewAdminOptions(), "Advanced.ToggleViewAdminOptions");
view_listener_t::addMenu(new LLAdvancedCheckViewAdminOptions(), "Advanced.CheckViewAdminOptions");
......
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