[packagechooser] Allow setting an ID for the module's GS key

This commit is contained in:
Adriaan de Groot 2019-08-03 23:24:30 +02:00
parent 2f2080727d
commit 87d7b2a5c0
3 changed files with 16 additions and 2 deletions

View file

@ -149,7 +149,6 @@ PackageChooserViewStep::jobs() const
void
PackageChooserViewStep::setConfigurationMap( const QVariantMap& configurationMap )
{
// TODO: use the configurationMap
QString mode = CalamaresUtils::getString( configurationMap, "mode" );
bool ok = false;
if ( !mode.isEmpty() )
@ -160,7 +159,10 @@ PackageChooserViewStep::setConfigurationMap( const QVariantMap& configurationMap
{
m_mode = PackageChooserMode::Required;
}
m_id = CalamaresUtils::getString( configurationMap, "id" );
// TODO: replace this hard-coded model
if ( !m_model )
{