Load additional module-specific configuration into a Module object.

main
Teo Mrnjavac 11 years ago
parent 3879087c4a
commit c7c4e52849

@ -51,6 +51,12 @@ operator>>( const YAML::Node& node, Calamares::Module* m )
{
node[ "requires" ] >> m->m_requiredModules;
}
// Module-specific configuration
if ( node[ "configuration" ] && node[ "configuration" ].IsMap() )
{
m->m_configurationMap = CalamaresUtils::yamlMapToVariant( node[ "configuration" ] ).toMap();
}
}
namespace Calamares

@ -22,6 +22,7 @@
#include "UiDllMacro.h"
#include <QStringList>
#include <QVariant>
namespace YAML
@ -79,6 +80,7 @@ private:
Interface m_interface;
QStringList m_requiredModules;
QString m_directory;
QVariantMap m_configurationMap;
friend void ::operator>>( const YAML::Node& node, Calamares::Module* m );
};

Loading…
Cancel
Save