diff options
author | Jacek Antonelli | 2010-08-01 15:57:53 -0500 |
---|---|---|
committer | Jacek Antonelli | 2010-08-01 15:57:53 -0500 |
commit | ff0e1296129a67be8d4a2c00dcc6a9ac537b2894 (patch) | |
tree | 036d552513db8d8f1171d340d2105600d960c9f9 /linden/indra/newview | |
parent | Revamped the LightShare option in Preferences > Advanced. (diff) | |
download | meta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.zip meta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.tar.gz meta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.tar.bz2 meta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.tar.xz |
Made the LightShare preference behave like the other preferences.
i.e. it only goes into effect if you press Apply/OK.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 5 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | 2 |
2 files changed, 6 insertions, 1 deletions
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() | |||
65 | childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); | 65 | childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); |
66 | childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled")); | 66 | childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled")); |
67 | childSetValue("language_is_public", gSavedSettings.getBOOL("LanguageIsPublic")); | 67 | childSetValue("language_is_public", gSavedSettings.getBOOL("LanguageIsPublic")); |
68 | childSetValue("lightshare_combo", | ||
69 | LLSD((S32)gSavedSettings.getU32("LightShareAllowed"))); | ||
68 | 70 | ||
69 | LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); | 71 | LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); |
70 | crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING)); | 72 | crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING)); |
@@ -84,6 +86,9 @@ void LLPrefsAdvanced::apply() | |||
84 | gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal()); | 86 | gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal()); |
85 | gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check")); | 87 | gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check")); |
86 | gSavedSettings.setBOOL("LanguageIsPublic", childGetValue("language_is_public")); | 88 | gSavedSettings.setBOOL("LanguageIsPublic", childGetValue("language_is_public")); |
89 | gSavedSettings.setU32("LightShareAllowed", | ||
90 | (U32)childGetValue("lightshare_combo").asInteger()); | ||
91 | |||
87 | 92 | ||
88 | // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC | 93 | // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC |
89 | if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check")) | 94 | 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 @@ | |||
32 | follows="top|left"> | 32 | follows="top|left"> |
33 | Allow region Windlight settings (LightShare): | 33 | Allow region Windlight settings (LightShare): |
34 | </text> | 34 | </text> |
35 | <combo_box name="lightshare_combo" control_name="LightShareAllowed" | 35 | <combo_box name="lightshare_combo" |
36 | bottom_delta="-2" left="240" height="18" width="120" | 36 | bottom_delta="-2" left="240" height="18" width="120" |
37 | allow_text_entry="false" follows="left|top"> | 37 | allow_text_entry="false" follows="left|top"> |
38 | <combo_item type="string" name="never" value="0"> | 38 | <combo_item type="string" name="never" value="0"> |