mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[calamares] Fix test-loader runtime
- Some view steps expect the module manager to be there, avoid startup warnings by creating one.
This commit is contained in:
parent
e8f342c0a5
commit
f2fb49ce26
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,8 @@
|
|||
#include "Settings.h"
|
||||
#include "ViewManager.h"
|
||||
|
||||
#include "modulesystem/ModuleManager.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QCommandLineOption>
|
||||
#include <QCommandLineParser>
|
||||
|
@ -229,6 +231,7 @@ main( int argc, char* argv[] )
|
|||
aw = new QApplication( argc, argv );
|
||||
QMainWindow* mw = module.m_ui ? new QMainWindow() : nullptr;
|
||||
(void)new Calamares::Branding( module.m_branding );
|
||||
(void)new Calamares::ModuleManager( QStringList(), nullptr );
|
||||
(void)Calamares::ViewManager::instance( mw );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue