mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[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.
This commit is contained in:
parent
28500de2f8
commit
376cb3c042
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue