diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-06-06 12:09:40 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-06-06 12:09:40 +0300 |
commit | 2281377c347233b79f76249143e6197142efcfbb (patch) | |
tree | a106d8e166d44c40056165d890e350ab98999170 /indra | |
parent | 11457017a1d0f9eeb365186dc09a6a68a895c623 (diff) |
SL-19813 Disable switch view on Worn and Recent Inventory tabs
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index afb69d9b6d..0ad4e69942 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -1511,6 +1511,7 @@ void LLPanelMainInventory::setActivePanel() { mActivePanel = (LLInventoryPanel*)getChild<LLTabContainer>("inventory filter tabs")->getCurrentPanel(); } + mViewModeBtn->setEnabled(mSingleFolderMode || (getAllItemsPanel() == getActivePanel())); } void LLPanelMainInventory::toggleViewMode() @@ -2307,7 +2308,7 @@ void LLPanelMainInventory::updatePanelVisibility() mCombinationViewPanel->setVisible(mSingleFolderMode); mNavigationBtnsPanel->setVisible(mSingleFolderMode); mViewModeBtn->setImageOverlay(mSingleFolderMode ? getString("default_mode_btn") : getString("single_folder_mode_btn")); - + mViewModeBtn->setEnabled(mSingleFolderMode || (getAllItemsPanel() == getActivePanel())); if (mSingleFolderMode) { if (isCombinationViewMode()) |