diff options
Diffstat (limited to 'linden/indra/newview/llpanelgeneral.cpp')
-rw-r--r-- | linden/indra/newview/llpanelgeneral.cpp | 8 |
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 | ||
167 | void LLPanelGeneral::cancel() | 175 | void LLPanelGeneral::cancel() |