implement https://calamares.io/bugs/browse/CAL-341
This commit is contained in:
parent
e0b1290b8c
commit
c89bd1db23
@ -425,3 +425,9 @@ UsersPage::setAutologinDefault( bool checked )
|
|||||||
{
|
{
|
||||||
ui->checkBoxAutoLogin->setChecked( checked );
|
ui->checkBoxAutoLogin->setChecked( checked );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
UsersPage::setBoxReusePassword( bool checked )
|
||||||
|
{
|
||||||
|
ui->checkBoxReusePassword->setChecked( checked );
|
||||||
|
}
|
||||||
|
@ -46,6 +46,7 @@ public:
|
|||||||
|
|
||||||
void setShowRootPassword( bool show );
|
void setShowRootPassword( bool show );
|
||||||
void setAutologinDefault( bool checked );
|
void setAutologinDefault( bool checked );
|
||||||
|
void setBoxReusePassword( bool checked );
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void onFullNameTextEdited( const QString& );
|
void onFullNameTextEdited( const QString& );
|
||||||
|
@ -159,5 +159,11 @@ UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||||||
{
|
{
|
||||||
m_widget->setAutologinDefault( configurationMap.value( "doAutologin" ).toBool() );
|
m_widget->setAutologinDefault( configurationMap.value( "doAutologin" ).toBool() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( configurationMap.contains( "doReusePassword" ) &&
|
||||||
|
configurationMap.value( "doReusePassword" ).type() == QVariant::Bool )
|
||||||
|
{
|
||||||
|
m_widget->setBoxReusePassword( configurationMap.value( "doReusePassword" ).toBool() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,3 +11,4 @@ autologinGroup: autologin
|
|||||||
doAutologin: true
|
doAutologin: true
|
||||||
sudoersGroup: wheel
|
sudoersGroup: wheel
|
||||||
setRootPassword: true
|
setRootPassword: true
|
||||||
|
doReusePassword: true
|
||||||
|
Loading…
Reference in New Issue
Block a user