mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Make ModuleManager accessible from outside CalamaresApplication.
This commit is contained in:
parent
4e2e964503
commit
dda7ea211d
2 changed files with 17 additions and 2 deletions
|
@ -32,11 +32,24 @@
|
|||
namespace Calamares
|
||||
{
|
||||
|
||||
|
||||
ModuleManager* ModuleManager::s_instance = nullptr;
|
||||
|
||||
|
||||
ModuleManager*
|
||||
ModuleManager::instance()
|
||||
{
|
||||
return s_instance;
|
||||
}
|
||||
|
||||
|
||||
ModuleManager::ModuleManager( const QStringList& paths, QObject* parent )
|
||||
: QObject( parent )
|
||||
, m_paths( paths )
|
||||
, m_lastPhaseLoaded( Phase_NULL )
|
||||
{
|
||||
Q_ASSERT( !s_instance );
|
||||
s_instance = this;
|
||||
}
|
||||
|
||||
ModuleManager::~ModuleManager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue