diff options
| author | Jonathan "Geenz" Goodman <geenz@lindenlab.com> | 2025-07-25 18:14:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-25 18:14:28 -0400 |
| commit | 0c39bdfd4de14a02104f3748030e974fbc98d978 (patch) | |
| tree | 4b97c902f513c06a23ddd9e954a4d01e8c604019 /indra/newview/llstartup.cpp | |
| parent | 210f559efe81864c7581677882c867dc14b7f854 (diff) | |
| parent | af507ce246249f5f80172538fc6780615b00a633 (diff) | |
Merge pull request #4442 from secondlife/geenz/main-to-2025.05
Geenz/main to 2025.05
Diffstat (limited to 'indra/newview/llstartup.cpp')
| -rw-r--r-- | indra/newview/llstartup.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index cc4f49c0b4..6bf0a50d1c 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -2103,9 +2103,6 @@ bool idle_startup() do_startup_frame(); - // We're successfully logged in. - gSavedSettings.setBOOL("FirstLoginThisInstall", false); - LLFloaterReg::showInitialVisibleInstances(); LLFloaterGridStatus::getInstance()->startGridStatusTimer(); @@ -2451,6 +2448,27 @@ bool idle_startup() LLPerfStats::StatsRecorder::setAutotuneInit(); + // Display Avatar Welcome Pack the first time a user logs in + // (or clears their settings....) + if (gSavedSettings.getBOOL("FirstLoginThisInstall")) + { + LLFloater* avatar_welcome_pack_floater = LLFloaterReg::findInstance("avatar_welcome_pack"); + if (avatar_welcome_pack_floater != nullptr) + { + // There is a (very - 1 in ~50 times) hard to repro bug where the login + // page is not hidden when the AWP floater is presented. This (agressive) + // approach to always close it seems like the best fix for now. + LLPanelLogin::closePanel(); + + avatar_welcome_pack_floater->setVisible(true); + } + } + + //// We're successfully logged in. + // 2025-06 Moved lower down in the state machine so the Avatar Welcome Pack + // floater display can be triggered correctly. + gSavedSettings.setBOOL("FirstLoginThisInstall", false); + return true; } |
