@@ -197,7 +197,6 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
197197 mCallback(callback),
198198 mCallbackData(cb_data),
199199 mListener(std::make_unique<LLPanelLoginListener>(this )),
200- mFirstLoginThisInstall(gSavedSettings .getBOOL(" FirstLoginThisInstall" )),
201200 mUsernameLength(0 ),
202201 mPasswordLength(0 ),
203202 mLocationLength(0 ),
@@ -217,15 +216,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
217216 login_holder->addChild (this );
218217 }
219218
220- if (mFirstLoginThisInstall )
221- {
222- buildFromFile ( " panel_login_first.xml" );
223- }
224- else
225- {
226- buildFromFile ( " panel_login.xml" );
227- }
228-
219+ buildFromFile ( " panel_login.xml" );
229220 reshape (rect.getWidth (), rect.getHeight ());
230221
231222 LLLineEditor* password_edit (getChild<LLLineEditor>(" password_edit" ));
@@ -246,8 +237,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
246237 mGridPanel = getChild<LLLayoutPanel>(" grid_panel" );
247238
248239 std::string current_grid = LLGridManager::getInstance ()->getGrid ();
249- if (!mFirstLoginThisInstall )
250- {
240+
251241 LLComboBox* favorites_combo = getChild<LLComboBox>(" start_location_combo" );
252242 updateLocationSelectorsVisibility (); // separate so that it can be called from preferences
253243 favorites_combo->setReturnCallback (boost::bind (&LLPanelLogin::onClickConnect, false ));
@@ -277,7 +267,6 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
277267 current_grid,
278268 ADD_TOP);
279269 server_choice_combo->selectFirstItem ();
280- }
281270
282271 LLSLURL start_slurl (LLStartUp::getStartSLURL ());
283272 // The StartSLURL might have been set either by an explicit command-line
@@ -347,15 +336,6 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
347336
348337void LLPanelLogin::addFavoritesToStartLocation ()
349338{
350- if (mFirstLoginThisInstall )
351- {
352- // first login panel has no favorites, just update name length and buttons
353- std::string user_defined_name = getChild<LLComboBox>(" username_combo" )->getSimple ();
354- mUsernameLength = static_cast <unsigned int >(user_defined_name.length ());
355- updateLoginButtons ();
356- return ;
357- }
358-
359339 // Clear the combo.
360340 LLComboBox* combo = getChild<LLComboBox>(" start_location_combo" );
361341 if (!combo) return ;
@@ -575,16 +555,8 @@ void LLPanelLogin::resetFields()
575555 // function is used to reset list in case of changes by external sources
576556 return ;
577557 }
578- if (sInstance ->mFirstLoginThisInstall )
579- {
580- // no list to populate
581- LL_WARNS () << " Shouldn't happen, user should have no ability to modify list on first install" << LL_ENDL;
582- }
583- else
584- {
585- LLPointer<LLCredential> cred = gSecAPIHandler ->loadCredential (LLGridManager::getInstance ()->getGrid ());
586- sInstance ->populateUserList (cred);
587- }
558+ LLPointer<LLCredential> cred = gSecAPIHandler ->loadCredential (LLGridManager::getInstance ()->getGrid ());
559+ sInstance ->populateUserList (cred);
588560}
589561
590562// static
@@ -1102,8 +1074,7 @@ void LLPanelLogin::onRememberUserCheck(void*)
11021074 LLComboBox* user_combo (sInstance ->getChild <LLComboBox>(" username_combo" ));
11031075
11041076 bool remember = remember_name->getValue ().asBoolean ();
1105- if (!sInstance ->mFirstLoginThisInstall
1106- && user_combo->getCurrentIndex () != -1
1077+ if (user_combo->getCurrentIndex () != -1
11071078 && !remember)
11081079 {
11091080 remember = true ;
@@ -1216,17 +1187,14 @@ void LLPanelLogin::updateLoginButtons()
12161187{
12171188 mLoginBtn ->setEnabled (mUsernameLength != 0 && mPasswordLength != 0 && !mAlertNotif );
12181189
1219- if (!mFirstLoginThisInstall )
1190+ LLComboBox* user_combo = getChild<LLComboBox>(" username_combo" );
1191+ LLCheckBoxCtrl* remember_name = getChild<LLCheckBoxCtrl>(" remember_name" );
1192+ if (user_combo->getCurrentIndex () != -1 )
12201193 {
1221- LLComboBox* user_combo = getChild<LLComboBox>(" username_combo" );
1222- LLCheckBoxCtrl* remember_name = getChild<LLCheckBoxCtrl>(" remember_name" );
1223- if (user_combo->getCurrentIndex () != -1 )
1224- {
1225- remember_name->setValue (true );
1226- LLCheckBoxCtrl* remember_pass = getChild<LLCheckBoxCtrl>(" remember_password" );
1227- remember_pass->setEnabled (true );
1228- } // Note: might be good idea to do "else remember_name->setValue(mRememberedState)" but it might behave 'weird' to user
1229- }
1194+ remember_name->setValue (true );
1195+ LLCheckBoxCtrl* remember_pass = getChild<LLCheckBoxCtrl>(" remember_password" );
1196+ remember_pass->setEnabled (true );
1197+ } // Note: might be good idea to do "else remember_name->setValue(mRememberedState)" but it might behave 'weird' to user
12301198}
12311199
12321200void LLPanelLogin::populateUserList (LLPointer<LLCredential> credential)
0 commit comments