aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgeneral.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-06-05 03:31:21 -0700
committerJacek Antonelli2010-06-19 02:43:30 -0500
commit0a77162d93c07ec0918251686f6b4050bd0b5c55 (patch)
tree842e1c98bbdd7e130f9672d575a013e267c04a18 /linden/indra/newview/llpanelgeneral.cpp
parentfix: leftclick self attachment (without touch) should act like leftclick self (diff)
downloadmeta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.zip
meta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.tar.gz
meta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.tar.bz2
meta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.tar.xz
Applied patch by Armin Weatherwax for #79: move AllowIdleAFK from advanced to Preferences > General
Diffstat (limited to 'linden/indra/newview/llpanelgeneral.cpp')
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index 3e2a048..ecfe6a5 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -65,6 +65,7 @@ BOOL LLPanelGeneral::postBuild()
65 childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames")); 65 childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames"));
66 childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle")); 66 childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle"));
67 childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout")); 67 childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout"));
68 childSetValue("afk_timeout_checkbox", gSavedSettings.getBOOL("AllowIdleAFK"));
68 childSetValue("mini_map_notify_chat", gSavedSettings.getBOOL("MiniMapNotifyChatRange")); 69 childSetValue("mini_map_notify_chat", gSavedSettings.getBOOL("MiniMapNotifyChatRange"));
69 childSetValue("mini_map_notify_sim", gSavedSettings.getBOOL("MiniMapNotifySimRange")); 70 childSetValue("mini_map_notify_sim", gSavedSettings.getBOOL("MiniMapNotifySimRange"));
70 71
@@ -129,6 +130,7 @@ void LLPanelGeneral::apply()
129 gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox")); 130 gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox"));
130 gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox")); 131 gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox"));
131 gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal()); 132 gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal());
133 gSavedSettings.setBOOL("AllowIdleAFK", childGetValue("afk_timeout_checkbox"));
132 gSavedSettings.setBOOL("MiniMapNotifyChatRange", childGetValue("mini_map_notify_chat")); 134 gSavedSettings.setBOOL("MiniMapNotifyChatRange", childGetValue("mini_map_notify_chat"));
133 gSavedSettings.setBOOL("MiniMapNotifySimRange", childGetValue("mini_map_notify_sim")); 135 gSavedSettings.setBOOL("MiniMapNotifySimRange", childGetValue("mini_map_notify_sim"));
134 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); 136 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch"));
@@ -162,6 +164,12 @@ void LLPanelGeneral::apply()
162 gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox")); 164 gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox"));
163 build_pie_menus(); 165 build_pie_menus();
164 } 166 }
167
168 // Keep gAllowIdleAFK around for performance reasons -- MC
169 if (gAllowIdleAFK != (BOOL)childGetValue("afk_timeout_checkbox"))
170 {
171 gAllowIdleAFK = childGetValue("afk_timeout_checkbox");
172 }
165} 173}
166 174
167void LLPanelGeneral::cancel() 175void LLPanelGeneral::cancel()