[calamares] Need a JobQueue and global storage before running any job.
The 'singleton' instances don't do a very good job of being singletons or ensuring their own creation.
This commit is contained in:
parent
48771f968a
commit
182458ad5a
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
#include "Job.h"
|
#include "Job.h"
|
||||||
|
#include "JobQueue.h"
|
||||||
|
|
||||||
#include <QCommandLineOption>
|
#include <QCommandLineOption>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
@ -155,6 +156,8 @@ main( int argc, char* argv[] )
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
std::unique_ptr< Calamares::Settings > settings_p( new Calamares::Settings( QString(), true ) );
|
std::unique_ptr< Calamares::Settings > settings_p( new Calamares::Settings( QString(), true ) );
|
||||||
|
std::unique_ptr< Calamares::JobQueue > jobqueue_p( new Calamares::JobQueue( nullptr ) );
|
||||||
|
|
||||||
cDebug() << "Calamares test module-loader" << module.moduleName();
|
cDebug() << "Calamares test module-loader" << module.moduleName();
|
||||||
Calamares::Module* m = load_module( module );
|
Calamares::Module* m = load_module( module );
|
||||||
if ( !m )
|
if ( !m )
|
||||||
|
Loading…
Reference in New Issue
Block a user