aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelgeneral.cpp')
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index adb4cfc..3e2a048 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -44,6 +44,7 @@
44 44
45#include "llagent.h" 45#include "llagent.h"
46#include "llviewerregion.h" 46#include "llviewerregion.h"
47#include "llviewermenu.h"
47 48
48LLPanelGeneral::LLPanelGeneral() 49LLPanelGeneral::LLPanelGeneral()
49{ 50{
@@ -66,7 +67,6 @@ BOOL LLPanelGeneral::postBuild()
66 childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout")); 67 childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout"));
67 childSetValue("mini_map_notify_chat", gSavedSettings.getBOOL("MiniMapNotifyChatRange")); 68 childSetValue("mini_map_notify_chat", gSavedSettings.getBOOL("MiniMapNotifyChatRange"));
68 childSetValue("mini_map_notify_sim", gSavedSettings.getBOOL("MiniMapNotifySimRange")); 69 childSetValue("mini_map_notify_sim", gSavedSettings.getBOOL("MiniMapNotifySimRange"));
69 childSetValue("notify_money_change_checkbox", gSavedSettings.getBOOL("NotifyMoneyChange"));
70 70
71 getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); 71 getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor"));
72 72
@@ -105,6 +105,8 @@ BOOL LLPanelGeneral::postBuild()
105 105
106 childSetVisible("maturity_desired_combobox", can_choose); 106 childSetVisible("maturity_desired_combobox", can_choose);
107 childSetVisible("maturity_desired_textbox", !can_choose); 107 childSetVisible("maturity_desired_textbox", !can_choose);
108
109 childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled"));
108 110
109 return TRUE; 111 return TRUE;
110} 112}
@@ -129,7 +131,6 @@ void LLPanelGeneral::apply()
129 gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal()); 131 gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal());
130 gSavedSettings.setBOOL("MiniMapNotifyChatRange", childGetValue("mini_map_notify_chat")); 132 gSavedSettings.setBOOL("MiniMapNotifyChatRange", childGetValue("mini_map_notify_chat"));
131 gSavedSettings.setBOOL("MiniMapNotifySimRange", childGetValue("mini_map_notify_sim")); 133 gSavedSettings.setBOOL("MiniMapNotifySimRange", childGetValue("mini_map_notify_sim"));
132 gSavedSettings.setBOOL("NotifyMoneyChange", childGetValue("notify_money_change_checkbox"));
133 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); 134 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch"));
134 gSavedSettings.setF32("UIScaleFactor", childGetValue("ui_scale_slider").asReal()); 135 gSavedSettings.setF32("UIScaleFactor", childGetValue("ui_scale_slider").asReal());
135 gSavedSettings.setBOOL("UIAutoScale", childGetValue("ui_auto_scale")); 136 gSavedSettings.setBOOL("UIAutoScale", childGetValue("ui_auto_scale"));
@@ -155,6 +156,12 @@ void LLPanelGeneral::apply()
155 gAgent.sendMaturityPreferenceToServer(preferred_maturity); 156 gAgent.sendMaturityPreferenceToServer(preferred_maturity);
156 } 157 }
157 } 158 }
159
160 if (gSavedSettings.getBOOL("LegacyPieEnabled") == !((BOOL)childGetValue("legacy_pie_menu_checkbox")))
161 {
162 gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox"));
163 build_pie_menus();
164 }
158} 165}
159 166
160void LLPanelGeneral::cancel() 167void LLPanelGeneral::cancel()