[packagechooser] Implement AppData loading

- An item can refer to *appdata* and load that, or provide
   the data in the config file itself.
 - Fix documentation about translations.
This commit is contained in:
Adriaan de Groot 2019-08-06 15:55:27 +02:00
parent 9a8b2c5a1e
commit d72391942f
2 changed files with 27 additions and 6 deletions

View file

@ -232,7 +232,14 @@ PackageChooserViewStep::fillModel( const QVariantList& items )
continue;
}
m_model->addPackage( PackageItem( item_map ) );
if ( item_map.contains( "appdata" ) )
{
m_model->addPackage( PackageItem::fromAppData( CalamaresUtils::getString( item_map, "appdata" ) ) );
}
else
{
m_model->addPackage( PackageItem( item_map ) );
}
}
}