|
|
|
@ -20,6 +20,7 @@
|
|
|
|
|
|
|
|
|
|
#include "CalamaresWindow.h"
|
|
|
|
|
#include "CalamaresVersion.h"
|
|
|
|
|
#include "ModuleLoader.h"
|
|
|
|
|
#include "Settings.h"
|
|
|
|
|
#include "utils/CalamaresUtils.h"
|
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
@ -55,11 +56,6 @@ CalamaresApplication::init()
|
|
|
|
|
setWindowIcon( QIcon( "from branding" ) );
|
|
|
|
|
|
|
|
|
|
initPlugins();
|
|
|
|
|
|
|
|
|
|
initJobQueue();
|
|
|
|
|
|
|
|
|
|
m_mainwindow = new CalamaresWindow();
|
|
|
|
|
m_mainwindow->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -85,6 +81,20 @@ CalamaresApplication::instance()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
CalamaresApplication::setDebug( bool enabled )
|
|
|
|
|
{
|
|
|
|
|
m_debugMode = enabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
CalamaresApplication::isDebug()
|
|
|
|
|
{
|
|
|
|
|
return m_debugMode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
CalamaresApplication::initSettings()
|
|
|
|
|
{
|
|
|
|
@ -102,28 +112,26 @@ CalamaresApplication::initBranding()
|
|
|
|
|
void
|
|
|
|
|
CalamaresApplication::initPlugins()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
m_moduleLoader = new Calamares::ModuleLoader(
|
|
|
|
|
Calamares::Settings::instance()->modulesSearchPaths(), this );
|
|
|
|
|
connect( m_moduleLoader, &Calamares::ModuleLoader::done,
|
|
|
|
|
this, &CalamaresApplication::onPluginsReady );
|
|
|
|
|
m_moduleLoader->start();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
CalamaresApplication::initJobQueue()
|
|
|
|
|
CalamaresApplication::onPluginsReady()
|
|
|
|
|
{
|
|
|
|
|
initJobQueue();
|
|
|
|
|
|
|
|
|
|
m_mainwindow = new CalamaresWindow();
|
|
|
|
|
m_mainwindow->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
CalamaresApplication::setDebug( bool enabled )
|
|
|
|
|
CalamaresApplication::initJobQueue()
|
|
|
|
|
{
|
|
|
|
|
m_debugMode = enabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
CalamaresApplication::isDebug()
|
|
|
|
|
{
|
|
|
|
|
return m_debugMode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|