[calamares] Fix test-loader for modules after ViewManager API

- The ViewManager needs to be told when loading is done now (because of
  the quit-at-end settings)

See 7393198f7b
main
Adriaan de Groot 5 years ago
parent 9db7dd3f3e
commit a97f4771d6

@ -229,7 +229,7 @@ main( int argc, char* argv[] )
std::unique_ptr< Calamares::JobQueue > jobqueue_p( new Calamares::JobQueue( nullptr ) );
QMainWindow* mw = nullptr;
auto gs = jobqueue_p->globalStorage();
auto* gs = jobqueue_p->globalStorage();
if ( !module.globalConfigFile().isEmpty() )
{
gs->loadYaml( module.globalConfigFile() );
@ -241,7 +241,6 @@ main( int argc, char* argv[] )
gs->insert( "localeConf", vm );
}
cDebug() << "Calamares module-loader testing" << module.moduleName();
Calamares::Module* m = load_module( module );
if ( !m )
@ -273,7 +272,9 @@ main( int argc, char* argv[] )
if ( mw )
{
QWidget* w = Calamares::ViewManager::instance()->currentStep()->widget();
auto* vm = Calamares::ViewManager::instance();
vm->onInitComplete();
QWidget* w = vm->currentStep()->widget();
w->setParent( mw );
mw->setCentralWidget( w );
w->show();

Loading…
Cancel
Save