diff options
Diffstat (limited to 'linden/indra/newview/llpanelgeneral.cpp')
-rw-r--r-- | linden/indra/newview/llpanelgeneral.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp index adb4cfc..5664f03 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 | ||
48 | LLPanelGeneral::LLPanelGeneral() | 49 | LLPanelGeneral::LLPanelGeneral() |
49 | { | 50 | { |
@@ -105,6 +106,8 @@ BOOL LLPanelGeneral::postBuild() | |||
105 | 106 | ||
106 | childSetVisible("maturity_desired_combobox", can_choose); | 107 | childSetVisible("maturity_desired_combobox", can_choose); |
107 | childSetVisible("maturity_desired_textbox", !can_choose); | 108 | childSetVisible("maturity_desired_textbox", !can_choose); |
109 | |||
110 | childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled")); | ||
108 | 111 | ||
109 | return TRUE; | 112 | return TRUE; |
110 | } | 113 | } |
@@ -155,6 +158,12 @@ void LLPanelGeneral::apply() | |||
155 | gAgent.sendMaturityPreferenceToServer(preferred_maturity); | 158 | gAgent.sendMaturityPreferenceToServer(preferred_maturity); |
156 | } | 159 | } |
157 | } | 160 | } |
161 | |||
162 | if (gSavedSettings.getBOOL("LegacyPieEnabled") == !((BOOL)childGetValue("legacy_pie_menu_checkbox"))) | ||
163 | { | ||
164 | gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox")); | ||
165 | build_pie_menus(); | ||
166 | } | ||
158 | } | 167 | } |
159 | 168 | ||
160 | void LLPanelGeneral::cancel() | 169 | void LLPanelGeneral::cancel() |