[libcalamaresui] Use setSource() for API version 1

- Just avoid all the componentized loading and do the
   synchronous load-compile-setContent thing.
This commit is contained in:
Adriaan de Groot 2019-06-17 11:17:06 +02:00
parent 15ab98cb26
commit 193bcbde71

View File

@ -201,10 +201,10 @@ ExecutionViewStep::onActivate()
// The QML was already loaded in the constructor, need to start it
callQMLFunction( m_qmlObject, "onActivate" );
}
else
else if ( !Calamares::Branding::instance()->slideshowPath().isEmpty() )
{
// API version 1 assumes onCompleted is the trigger
loadQml();
m_qmlShow->setSource( QUrl::fromLocalFile( Calamares::Branding::instance()->slideshowPath() ) );
}
JobQueue* queue = JobQueue::instance();