mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 00:48:22 -04:00
Defer PartitionCoreModule initialization so it doesn't block startup.
This commit is contained in:
parent
92ca79c2f8
commit
0666fb4977
1 changed files with 7 additions and 2 deletions
|
@ -56,9 +56,9 @@
|
|||
PartitionViewStep::PartitionViewStep( QObject* parent )
|
||||
: Calamares::ViewStep( parent )
|
||||
, m_widget( new QStackedWidget() )
|
||||
, m_core( new PartitionCoreModule( this ) )
|
||||
, m_core( nullptr )
|
||||
, m_choicePage( nullptr )
|
||||
, m_manualPartitionPage( new PartitionPage( m_core ) )
|
||||
, m_manualPartitionPage( nullptr )
|
||||
{
|
||||
m_widget->setContentsMargins( 0, 0, 0, 0 );
|
||||
|
||||
|
@ -73,7 +73,12 @@ PartitionViewStep::PartitionViewStep( QObject* parent )
|
|||
void
|
||||
PartitionViewStep::continueLoading()
|
||||
{
|
||||
Q_ASSERT( !m_core );
|
||||
Q_ASSERT( !m_choicePage );
|
||||
Q_ASSERT( !m_manualPartitionPage );
|
||||
|
||||
m_core = new PartitionCoreModule( this );
|
||||
m_manualPartitionPage = new PartitionPage( m_core );
|
||||
m_choicePage = new ChoicePage();
|
||||
|
||||
m_choicePage->init( m_core );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue