summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorcoyot@coyot-sager-PC <coyot@coyot-sager-PC>2016-11-02 18:05:32 +0100
committercoyot@coyot-sager-PC <coyot@coyot-sager-PC>2016-11-02 18:05:32 +0100
commit6c8f447e529d4ea8ac70cc4ede4749f0b9f9bdaf (patch)
tree087f78e81ceea158341155f366649c345008d609 /indra/newview
parentc417b2637a866fb4f47bd60c201cdf24d060251e (diff)
SL-323: activate viewer menu and floater checks for updates via VMP
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterabout.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/indra/newview/llfloaterabout.cpp b/indra/newview/llfloaterabout.cpp
index 1b85f645e8..171858e472 100644
--- a/indra/newview/llfloaterabout.cpp
+++ b/indra/newview/llfloaterabout.cpp
@@ -90,7 +90,7 @@ public:
static LLSD getInfo();
void onClickCopyToClipboard();
void onClickUpdateCheck();
- void setUpdateListener();
+ static void setUpdateListener();
private:
void setSupportText(const std::string& server_release_notes_url);
@@ -138,7 +138,7 @@ BOOL LLFloaterAbout::postBuild()
boost::bind(&LLFloaterAbout::onClickCopyToClipboard, this));
getChild<LLUICtrl>("update_btn")->setCommitCallback(
- boost::bind(&LLFloaterAbout::setUpdateListener, this));
+ boost::bind(&LLFloaterAbout::onClickUpdateCheck, this));
static const LLUIColor about_color = LLUIColorTable::instance().getColor("TextFgReadOnlyColor");
@@ -314,6 +314,11 @@ void LLFloaterAbout::onClickCopyToClipboard()
support_widget->deselect();
}
+void LLFloaterAbout::onClickUpdateCheck()
+{
+ setUpdateListener();
+}
+
void LLFloaterAbout::setSupportText(const std::string& server_release_notes_url)
{
#if LL_WINDOWS
@@ -401,17 +406,17 @@ void LLFloaterAbout::setUpdateListener()
}
}
- if ( ! downloads)
+ if ( !downloads )
{
LLNotificationsUtil::add("UpdateViewerUpToDate");
}
else
{
- if ( ! done )
+ if ( !done )
{
LLNotificationsUtil::add("UpdateDownloadInProgress");
}
- else if ( !next and !skip )
+ else if ( (!next) && (!skip) )
{
LLNotificationsUtil::add("UpdateDownloadComplete");
}
@@ -429,6 +434,10 @@ void LLFloaterAboutUtil::registerFloater()
{
LLFloaterReg::add("sl_about", "floater_about.xml",
&LLFloaterReg::build<LLFloaterAbout>);
+}
+void LLFloaterAboutUtil::checkUpdatesAndNotify()
+{
+ LLFloaterAbout::setUpdateListener();
}