Allow setting the default for autologin/no autologin.
This commit is contained in:
parent
761f22443b
commit
4ae55d0108
@ -407,3 +407,11 @@ UsersPage::onRootPasswordTextChanged( const QString& )
|
||||
|
||||
emit checkReady( isReady() );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
UsersPage::setAutologinDefault( bool checked )
|
||||
{
|
||||
ui->checkBoxLoginAuto->setChecked( checked );
|
||||
ui->checkBoxLoginNormal->setChecked( !checked );
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
void onActivate();
|
||||
|
||||
void setShowRootPassword( bool show );
|
||||
void setAutologinDefault( bool checked );
|
||||
|
||||
protected slots:
|
||||
void onFullNameTextEdited( const QString& );
|
||||
|
@ -159,5 +159,11 @@ UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||
configurationMap.value( "setRootPassword" ).toBool() );
|
||||
m_widget->setShowRootPassword( configurationMap.value( "setRootPassword" ).toBool() );
|
||||
}
|
||||
|
||||
if ( configurationMap.contains( "doAutologin" ) &&
|
||||
configurationMap.value( "doAutologin" ).type() == QVariant::Bool )
|
||||
{
|
||||
m_widget->setAutologinDefault( configurationMap.value( "doAutologin" ).toBool() );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user