SL-19813 Disable switch view on Worn and Recent Inventory tabs

master
Maxim Nikolenko 2023-06-06 12:09:40 +03:00
parent 11457017a1
commit 2281377c34
1 changed files with 2 additions and 1 deletions

View File

@ -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())