diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-03-14 20:40:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-14 20:40:12 +0200 |
commit | 17fbbef67b2ee853b6ea424fcc617089d848d4a7 (patch) | |
tree | 5d46c62677c224fd1cf94742e36c10f3ab1ad606 | |
parent | 14dc1a11b812a4f3817b0eedf09d72669e0cacfc (diff) |
#3745 fix for showing system notification on login
-rw-r--r-- | indra/newview/llcallingcard.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llcallingcard.cpp b/indra/newview/llcallingcard.cpp index 549c7ed0e4..829b6380cd 100644 --- a/indra/newview/llcallingcard.cpp +++ b/indra/newview/llcallingcard.cpp @@ -42,6 +42,7 @@ #include "llinventorymodel.h" #include "llnotifications.h" #include "llslurl.h" +#include "llstartup.h" #include "llimview.h" #include "lltrans.h" #include "llviewercontrol.h" @@ -743,7 +744,11 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online) mModifyMask |= LLFriendObserver::ONLINE; instance().notifyObservers(); - gInventory.notifyObservers(); + // Skip if we had received the friends list before the inventory callbacks were properly initialized + if (LLStartUp::getStartupState() > STATE_INVENTORY_CALLBACKS) + { + gInventory.notifyObservers(); + } } } |