mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #471, allow to search server by name and occupy less height for form
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ace3b60062
commit
012543ef02
@@ -69,7 +69,16 @@ namespace BlackGui
|
||||
|
||||
void CServerForm::showPasswordField(bool show)
|
||||
{
|
||||
this->ui->lbl_Password->setVisible(show);
|
||||
if (this->ui->le_Password->isVisible() == show) { return; }
|
||||
if (m_passwordNameLabel.isEmpty()) { m_passwordNameLabel = ui->lbl_IdPassword->text(); }
|
||||
if (show)
|
||||
{
|
||||
ui->lbl_IdPassword->setText(m_passwordNameLabel);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->lbl_IdPassword->setText("Id");
|
||||
}
|
||||
this->ui->le_Password->setVisible(show);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user