Commit 376cb3c0 authored by Adriaan de Groot's avatar Adriaan de Groot

[calamares] Give the fake ExecutionViewModule a name

- This is needed for addModule() so the module manager knows there
  is a module by the name x@x.
- Tell the ExecutionViewStep to run jobs from x@x.
parent 28500de2
......@@ -187,7 +187,6 @@ public:
virtual Calamares::JobList jobs() const override;
protected:
void initFrom( const QVariantMap& ) override;
};
......@@ -195,6 +194,9 @@ protected:
ExecViewModule::ExecViewModule()
: Calamares::Module()
{
QVariantMap m;
m.insert( "name", "x" );
Calamares::Module::initFrom(m, "x" );
}
ExecViewModule::~ExecViewModule() {}
......@@ -210,6 +212,7 @@ ExecViewModule::loadSelf()
auto* viewStep = new Calamares::ExecutionViewStep();
viewStep->setModuleInstanceKey( instanceKey() );
viewStep->setConfigurationMap( m_configurationMap );
viewStep->appendJobModuleInstanceKey( "x@x" );
Calamares::ViewManager::instance()->addViewStep( viewStep );
m_loaded = true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment