diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-06-26 14:48:02 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-06-26 14:48:02 +0300 |
| commit | 6ee6d19f600bb7fee99f96e8476e2c57088dad17 (patch) | |
| tree | 68b85e3d30e12cfe26cf515048f9f0a8f28eeb5c /indra/newview/llfloaterinventorysettings.cpp | |
| parent | 7ae63daff1e1834cc863856df4f731773cc2ad23 (diff) | |
viewer#1005 Review fixes
Diffstat (limited to 'indra/newview/llfloaterinventorysettings.cpp')
| -rw-r--r-- | indra/newview/llfloaterinventorysettings.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llfloaterinventorysettings.cpp b/indra/newview/llfloaterinventorysettings.cpp index 612953b6df..62f76207a3 100644 --- a/indra/newview/llfloaterinventorysettings.cpp +++ b/indra/newview/llfloaterinventorysettings.cpp @@ -29,6 +29,7 @@ #include "llfloaterinventorysettings.h" #include "llcolorswatch.h" +#include "llviewercontrol.h" LLFloaterInventorySettings::LLFloaterInventorySettings(const LLSD& key) : LLFloater(key) @@ -43,13 +44,17 @@ LLFloaterInventorySettings::~LLFloaterInventorySettings() BOOL LLFloaterInventorySettings::postBuild() { getChild<LLUICtrl>("favorites_color")->setCommitCallback(boost::bind(&LLFloaterInventorySettings::updateColorSwatch, this)); + + bool enable_color = gSavedSettings.getBOOL("InventoryFavoritesColorText"); + getChild<LLUICtrl>("favorites_swatch")->setEnabled(enable_color); + return TRUE; } void LLFloaterInventorySettings::updateColorSwatch() { - bool val = getChild<LLUICtrl>("favorites_color")->getEnabled(); - getChild<LLUICtrl>("favorites_color")->setEnabled(val); + bool val = getChild<LLUICtrl>("favorites_color")->getValue(); + getChild<LLUICtrl>("favorites_swatch")->setEnabled(val); } void LLFloaterInventorySettings::applyUIColor(LLUICtrl* ctrl, const LLSD& param) |
