diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2026-02-20 18:18:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-20 18:18:50 +0200 |
| commit | a52066c2ec98c4ead9d72c726c284762924b5d92 (patch) | |
| tree | 9854c6ce5ea5d0d4ab979a57ab73dd222a6756ca /indra/llui/lltabcontainer.cpp | |
| parent | 3973ba17502f417099ae60cb983e1db7f2fc71f2 (diff) | |
#5396 Add an option to hide Recent, Worn and Favorites tabs
* #5396 Add an option to hide Recent, Worn and Favorites tabs
* #5396 skip tabs initialization if hidden
Diffstat (limited to 'indra/llui/lltabcontainer.cpp')
| -rw-r--r-- | indra/llui/lltabcontainer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp index 5e0985c79c..48e42d9fc0 100644 --- a/indra/llui/lltabcontainer.cpp +++ b/indra/llui/lltabcontainer.cpp @@ -2202,3 +2202,16 @@ void LLTabContainer::setTabVisibility( LLPanel const *aPanel, bool aVisible ) updateMaxScrollPos(); } + +bool LLTabContainer::getTabVisibility(const LLPanel* panel) const +{ + for (tuple_list_t::const_iterator itr = mTabList.begin(); itr != mTabList.end(); ++itr) + { + LLTabTuple const* pTT = *itr; + if (pTT->mTabPanel == panel) + { + return pTT->mVisible; + } + } + return false; +} |
