From 2281377c347233b79f76249143e6197142efcfbb Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Tue, 6 Jun 2023 12:09:40 +0300 Subject: SL-19813 Disable switch view on Worn and Recent Inventory tabs --- indra/newview/llpanelmaininventory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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("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()) -- cgit v1.2.3