From ff0e1296129a67be8d4a2c00dcc6a9ac537b2894 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sun, 1 Aug 2010 15:57:53 -0500 Subject: Made the LightShare preference behave like the other preferences. i.e. it only goes into effect if you press Apply/OK. --- linden/indra/newview/llprefsadvanced.cpp | 5 +++++ .../newview/skins/default/xui/en-us/panel_preferences_advanced.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview') diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index 675a87f..7830c29 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp @@ -65,6 +65,8 @@ BOOL LLPrefsAdvanced::postBuild() childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled")); childSetValue("language_is_public", gSavedSettings.getBOOL("LanguageIsPublic")); + childSetValue("lightshare_combo", + LLSD((S32)gSavedSettings.getU32("LightShareAllowed"))); LLComboBox* crash_behavior_combobox = getChild("crash_behavior_combobox"); crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING)); @@ -84,6 +86,9 @@ void LLPrefsAdvanced::apply() gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal()); gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check")); gSavedSettings.setBOOL("LanguageIsPublic", childGetValue("language_is_public")); + gSavedSettings.setU32("LightShareAllowed", + (U32)childGetValue("lightshare_combo").asInteger()); + // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check")) diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml index 1b463a2..de34ebd 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml @@ -32,7 +32,7 @@ follows="top|left"> Allow region Windlight settings (LightShare): - -- cgit v1.1