|
|
@ -28,7 +28,6 @@
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
#include "JobQueue.h"
|
|
|
|
#include "JobQueue.h"
|
|
|
|
#include "Settings.h"
|
|
|
|
#include "Settings.h"
|
|
|
|
#include "ViewManager.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CalamaresApplication::CalamaresApplication( int& argc, char *argv[] )
|
|
|
|
CalamaresApplication::CalamaresApplication( int& argc, char *argv[] )
|
|
|
@ -149,16 +148,19 @@ CalamaresApplication::onPluginsReady()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
initJobQueue();
|
|
|
|
initJobQueue();
|
|
|
|
|
|
|
|
|
|
|
|
m_mainwindow = new CalamaresWindow();
|
|
|
|
m_mainwindow = new CalamaresWindow(); //also creates ViewManager
|
|
|
|
|
|
|
|
|
|
|
|
m_moduleManager->loadModules( Calamares::Prepare );
|
|
|
|
m_moduleManager->loadModules( Calamares::Prepare );
|
|
|
|
connect( m_moduleManager, &Calamares::ModuleManager::modulesLoaded, [this]
|
|
|
|
connect( m_moduleManager, &Calamares::ModuleManager::modulesLoaded,
|
|
|
|
|
|
|
|
[this]( Calamares::Phase phase )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if ( phase == Calamares::Prepare )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_mainwindow->show();
|
|
|
|
m_mainwindow->show();
|
|
|
|
|
|
|
|
|
|
|
|
//TODO: move somewhere
|
|
|
|
|
|
|
|
ProgressTreeModel* m = new ProgressTreeModel( this );
|
|
|
|
ProgressTreeModel* m = new ProgressTreeModel( this );
|
|
|
|
ProgressTreeView::instance()->setModel( m );
|
|
|
|
ProgressTreeView::instance()->setModel( m );
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|