Turn PartitionCoreModule::refreshPartitionModel() into refresh() and make it public
This commit is contained in:
parent
5c594f8dd7
commit
4e49f59333
@ -192,8 +192,7 @@ PartitionCoreModule::createPartitionTable( Device* device, PartitionTable::Table
|
|||||||
job->updatePreview();
|
job->updatePreview();
|
||||||
info->jobs << Calamares::job_ptr( job );
|
info->jobs << Calamares::job_ptr( job );
|
||||||
|
|
||||||
refreshPartitionModel( device );
|
refresh( device );
|
||||||
updateHasRootMountPoint();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -205,11 +204,9 @@ PartitionCoreModule::createPartition( Device* device, Partition* partition )
|
|||||||
CreatePartitionJob* job = new CreatePartitionJob( device, partition );
|
CreatePartitionJob* job = new CreatePartitionJob( device, partition );
|
||||||
job->updatePreview();
|
job->updatePreview();
|
||||||
|
|
||||||
refreshPartitionModel( device );
|
|
||||||
|
|
||||||
deviceInfo->jobs << Calamares::job_ptr( job );
|
deviceInfo->jobs << Calamares::job_ptr( job );
|
||||||
|
|
||||||
updateHasRootMountPoint();
|
refresh( device );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -265,8 +262,7 @@ PartitionCoreModule::deletePartition( Device* device, Partition* partition )
|
|||||||
jobs << Calamares::job_ptr( job );
|
jobs << Calamares::job_ptr( job );
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshPartitionModel( device );
|
refresh( device );
|
||||||
updateHasRootMountPoint();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QList< Calamares::job_ptr >
|
QList< Calamares::job_ptr >
|
||||||
@ -293,11 +289,12 @@ PartitionCoreModule::dumpQueue() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PartitionCoreModule::refreshPartitionModel( Device* device )
|
PartitionCoreModule::refresh( Device* device )
|
||||||
{
|
{
|
||||||
auto model = partitionModelForDevice( device );
|
auto model = partitionModelForDevice( device );
|
||||||
Q_ASSERT( model );
|
Q_ASSERT( model );
|
||||||
model->reload();
|
model->reload();
|
||||||
|
updateHasRootMountPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PartitionCoreModule::updateHasRootMountPoint()
|
void PartitionCoreModule::updateHasRootMountPoint()
|
||||||
|
@ -62,6 +62,8 @@ public:
|
|||||||
return m_hasRootMountPoint;
|
return m_hasRootMountPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void refresh( Device* device );
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void hasRootMountPointChanged( bool value );
|
void hasRootMountPointChanged( bool value );
|
||||||
|
|
||||||
@ -88,7 +90,6 @@ private:
|
|||||||
|
|
||||||
void listDevices();
|
void listDevices();
|
||||||
void updateHasRootMountPoint();
|
void updateHasRootMountPoint();
|
||||||
void refreshPartitionModel( Device* device );
|
|
||||||
|
|
||||||
void dumpQueue() const;
|
void dumpQueue() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user