mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
implement https://calamares.io/bugs/browse/CAL-341
This commit is contained in:
parent
e0b1290b8c
commit
c89bd1db23
4 changed files with 14 additions and 0 deletions
|
@ -425,3 +425,9 @@ UsersPage::setAutologinDefault( bool checked )
|
|||
{
|
||||
ui->checkBoxAutoLogin->setChecked( checked );
|
||||
}
|
||||
|
||||
void
|
||||
UsersPage::setBoxReusePassword( bool checked )
|
||||
{
|
||||
ui->checkBoxReusePassword->setChecked( checked );
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ public:
|
|||
|
||||
void setShowRootPassword( bool show );
|
||||
void setAutologinDefault( bool checked );
|
||||
void setBoxReusePassword( bool checked );
|
||||
|
||||
protected slots:
|
||||
void onFullNameTextEdited( const QString& );
|
||||
|
|
|
@ -159,5 +159,11 @@ UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||
{
|
||||
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
|
||||
sudoersGroup: wheel
|
||||
setRootPassword: true
|
||||
doReusePassword: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue