mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
Allow setting the default for autologin/no autologin.
This commit is contained in:
parent
761f22443b
commit
4ae55d0108
3 changed files with 15 additions and 0 deletions
|
@ -407,3 +407,11 @@ UsersPage::onRootPasswordTextChanged( const QString& )
|
||||||
|
|
||||||
emit checkReady( isReady() );
|
emit checkReady( isReady() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
UsersPage::setAutologinDefault( bool checked )
|
||||||
|
{
|
||||||
|
ui->checkBoxLoginAuto->setChecked( checked );
|
||||||
|
ui->checkBoxLoginNormal->setChecked( !checked );
|
||||||
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ public:
|
||||||
void onActivate();
|
void onActivate();
|
||||||
|
|
||||||
void setShowRootPassword( bool show );
|
void setShowRootPassword( bool show );
|
||||||
|
void setAutologinDefault( bool checked );
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void onFullNameTextEdited( const QString& );
|
void onFullNameTextEdited( const QString& );
|
||||||
|
|
|
@ -159,5 +159,11 @@ UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||||
configurationMap.value( "setRootPassword" ).toBool() );
|
configurationMap.value( "setRootPassword" ).toBool() );
|
||||||
m_widget->setShowRootPassword( 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…
Add table
Add a link
Reference in a new issue