Skip to content
Snippets Groups Projects
Commit e4e58f00 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

When turning off create-account button, also turn off its title text.

Login-panel logic distinguishes "system grid" from "non-system grid." With
Oz's recent changes for pathfinding, now only agni and aditi are "system
grids;" anything else configured into grids.xml is a "non-system grid." The
difference is that when you select a "non-system grid" on the grid selector,
we turn off the "lost password?" link and the "create account" button -- since
how can we help with either if we don't recognize the grid? This logic already
existed, but only turned off the create-account button, leaving the new title
"CREATE YOUR ACCOUNT" over an empty corner of the login panel. Turn that off too.
parent df767cef
No related branches found
No related tags found
No related merge requests found
......@@ -908,9 +908,11 @@ void LLPanelLogin::updateServer()
// update the login panel links
bool system_grid = LLGridManager::getInstance()->isSystemGrid();
sInstance->getChildView("create_new_account_btn")->setVisible( system_grid);
sInstance->getChildView("forgot_password_text")->setVisible( system_grid);
// Want to vanish not only create_new_account_btn, but also the
// title text over it, so turn on/off the whole layout_panel element.
sInstance->getChild<LLLayoutPanel>("links")->setVisible(system_grid);
sInstance->getChildView("forgot_password_text")->setVisible(system_grid);
// grid changed so show new splash screen (possibly)
loadLoginPage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment