[calamares] Register modules in test-loader

- When a viewmodule is loaded, register it with the module manager
  (especially relevant for the slideshow module).
This commit is contained in:
Adriaan de Groot 2020-05-20 10:54:48 +02:00
parent c7d0df223a
commit 28500de2f8

View File

@ -397,8 +397,9 @@ main( int argc, char* argv[] )
mw = module.m_ui ? new QMainWindow() : nullptr;
(void)new Calamares::Branding( module.m_branding );
(void)new Calamares::ModuleManager( QStringList(), nullptr );
auto* modulemanager = new Calamares::ModuleManager( QStringList(), nullptr );
(void)Calamares::ViewManager::instance( mw );
modulemanager->addModule( m );
}
if ( !m->isLoaded() )