summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2026-09-22 17:48:20 +0300
committerGitHub <noreply@github.com>2026-09-22 17:48:20 +0300
commit9e0178f26972ee8a913b92c99cf069707d3ddc3e (patch)
treeb5559a5985f707b56a5120ab69b25f95e00c0e07
parent1723845d6a0e9674265c501e1f5e8a921dfe764a (diff)
#6348 fix Received items being stuck at "Searching..." if it's open when logging in
-rw-r--r--indra/newview/llsidepanelinventory.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp
index 623db82939..ddb60b15db 100644
--- a/indra/newview/llsidepanelinventory.cpp
+++ b/indra/newview/llsidepanelinventory.cpp
@@ -313,6 +313,13 @@ void LLSidepanelInventory::observeInboxModifications(const LLUUID& inboxID)
LLPanelMarketplaceInbox * inbox = getChild<LLPanelMarketplaceInbox>(MARKETPLACE_INBOX_PANEL);
LLInventoryPanel* inventory_panel = inbox->setupInventoryPanel();
mInventoryPanelInbox = inventory_panel->getInventoryPanelHandle();
+
+ // Collapsing/expanding the inbox layout panel doesn't toggle actual view visibility, so if the
+ // inbox is already expanded at this point, build the views right away.
+ if (mInboxLayoutPanel && !mInboxLayoutPanel->isCollapsed())
+ {
+ inventory_panel->initializeViewBuilding();
+ }
}
void LLSidepanelInventory::enableInbox(bool enabled)
@@ -373,10 +380,17 @@ void LLSidepanelInventory::onToggleInboxBtn()
{
mInboxLayoutPanel->setTargetDim(gSavedPerAccountSettings.getS32("InventoryInboxHeight"));
if (mInboxLayoutPanel->isInVisibleChain())
- {
- gSavedPerAccountSettings.setU32("LastInventoryInboxActivity", (U32)time_corrected());
+ {
+ gSavedPerAccountSettings.setU32("LastInventoryInboxActivity", (U32)time_corrected());
+ }
+
+ // Build the views when expanding the inbox if that hasn't happened yet.
+ LLInventoryPanel* inventory_panel = mInventoryPanelInbox.get();
+ if (inventory_panel)
+ {
+ inventory_panel->initializeViewBuilding();
+ }
}
-}
else
{
gSavedPerAccountSettings.setS32("InventoryInboxHeight", mInboxLayoutPanel->getTargetDim());