mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Handle missing setting gracefully.
This commit is contained in:
parent
7b3f6cdd5a
commit
1d8330f1eb
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ Settings::Settings( const QString& settingsFilePath,
|
||||||
.as< std::string >() );
|
.as< std::string >() );
|
||||||
m_promptInstall = config[ "prompt-install" ].as< bool >();
|
m_promptInstall = config[ "prompt-install" ].as< bool >();
|
||||||
|
|
||||||
m_doChroot = !config[ "dont-chroot" ].as< bool >();
|
m_doChroot = config[ "dont-chroot" ] ? !config[ "dont-chroot" ].as< bool >() : true;
|
||||||
}
|
}
|
||||||
catch ( YAML::Exception& e )
|
catch ( YAML::Exception& e )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue