|
|
@ -165,14 +165,10 @@ CalamaresApplication::initPlugins()
|
|
|
|
Calamares::ViewManager* vm = Calamares::ViewManager::instance();
|
|
|
|
Calamares::ViewManager* vm = Calamares::ViewManager::instance();
|
|
|
|
Calamares::JobQueue* queue = Calamares::JobQueue::instance();
|
|
|
|
Calamares::JobQueue* queue = Calamares::JobQueue::instance();
|
|
|
|
|
|
|
|
|
|
|
|
//FIXME: we should enqueue viewmodule jobs in the order from settings.conf,
|
|
|
|
for( const QString& name : Calamares::Settings::instance()->modules( Calamares::Install ) )
|
|
|
|
// not in the order they show up in the UI
|
|
|
|
|
|
|
|
// Ideally, if a module is a viewmodule and isLoaded we should ask
|
|
|
|
|
|
|
|
// for jobs, else if it's a viewmodule and not isLoaded we bail with
|
|
|
|
|
|
|
|
// error, else if jobmodule and not isLoaded, just loadSelf.
|
|
|
|
|
|
|
|
for( Calamares::ViewStep* step : vm->prepareSteps() )
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
queue->enqueue( step->jobs() );
|
|
|
|
Calamares::Module* module = m_moduleManager->module( name );
|
|
|
|
|
|
|
|
queue->enqueue( module->jobs() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
connect( queue, &Calamares::JobQueue::failed,
|
|
|
|
connect( queue, &Calamares::JobQueue::failed,
|
|
|
|
vm, &Calamares::ViewManager::onInstallationFailed );
|
|
|
|
vm, &Calamares::ViewManager::onInstallationFailed );
|
|
|
|