mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
[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:
parent
9a8b2c5a1e
commit
d72391942f
2 changed files with 27 additions and 6 deletions
|
@ -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 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue