summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-04-18 21:27:33 +0800
committerErik Kundiman <erik@megapahit.org>2026-04-18 21:27:33 +0800
commitc048611e4e5cd35832ff733f475f1d76e14f5fed (patch)
tree3e5c7fffc329c7d224f3ae6068be72fc210fe0a7 /indra/newview/llpanellogin.cpp
parent54b957c78179c495fb8e62e62ae2326f9d185724 (diff)
parent5c500ccf407f0b5a0b253b98dd4bd3f33f643aba (diff)
Merge remote-tracking branch 'secondlife/main'
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rw-r--r--indra/newview/llpanellogin.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index fe9145bf71..0a585722f2 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -37,6 +37,9 @@
#include "llappviewer.h"
#include "llbutton.h"
+#if LL_VELOPACK
+#include "llvelopack.h"
+#endif
#include "llcheckboxctrl.h"
#include "llcommandhandler.h" // for secondlife:///app/login/
#include "llcombobox.h"
@@ -936,6 +939,19 @@ void LLPanelLogin::handleMediaEvent(LLPluginClassMedia* /*self*/, EMediaEvent ev
// static
void LLPanelLogin::onClickConnect(bool commit_fields)
{
+#if LL_VELOPACK
+ // In theory, you should never be able to get here.
+ // If there's a required update, try as you might you're not supposed to actually close the downloading update dialog.
+ // But just in case...
+ if (velopack_is_required_update_in_progress())
+ {
+ LLSD args;
+ args["VERSION"] = velopack_get_required_update_version();
+ LLNotificationsUtil::add("DownloadingUpdate", args);
+ return;
+ }
+#endif
+
if (sInstance && sInstance->mCallback)
{
if (commit_fields)