Pass-through login splash page that allows update notifications.
Page source: https://github.com/singularity-viewer/login-page
This commit is contained in:
@@ -675,5 +675,27 @@
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>SingularitySplashPagePrefix</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Overlay page to display on the login splash string. Leave empty if you want unmodified grid splash page</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>http://singularityview.sourceforge.net</string>
|
||||
</map>
|
||||
<key>SingularitySplashPagePath</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Path to the overlay page to display on the login splash string. Leave empty if you want unmodified grid splash page</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>splash/</string>
|
||||
</map>
|
||||
</map>
|
||||
</llsd>
|
||||
|
||||
@@ -840,6 +840,13 @@ void LLPanelLogin::loadLoginPage()
|
||||
gViewerWindow->setMenuBackgroundColor(false, !LLViewerLogin::getInstance()->isInProductionGrid());
|
||||
gLoginMenuBarView->setBackgroundColor(gMenuBarView->getBackgroundColor());
|
||||
|
||||
std::string singularity_splash_uri = gSavedSettings.getString("SingularitySplashPagePrefix");
|
||||
if (!singularity_splash_uri.empty())
|
||||
{
|
||||
params["original_page"] = login_uri.asString();
|
||||
login_uri = LLURI::buildHTTP(singularity_splash_uri, gSavedSettings.getString("SingularitySplashPagePath"), params);
|
||||
}
|
||||
|
||||
LLMediaCtrl* web_browser = sInstance->getChild<LLMediaCtrl>("login_html");
|
||||
if (web_browser->getCurrentNavUrl() != login_uri.asString())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user