mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Rearrange asynchronous scan in PartitionCoreModule a bit.
This commit is contained in:
parent
92eb947cc5
commit
45f6e6c55b
3 changed files with 17 additions and 6 deletions
|
@ -105,11 +105,19 @@ PartitionCoreModule::PartitionCoreModule( QObject* parent )
|
|||
if ( !KPMHelpers::initKPMcore() )
|
||||
qFatal( "Failed to initialize KPMcore backend" );
|
||||
FileSystemFactory::init();
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PartitionCoreModule::init()
|
||||
{
|
||||
QMutexLocker locker( &m_revertMutex );
|
||||
doInit();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PartitionCoreModule::doInit()
|
||||
{
|
||||
CoreBackend* backend = CoreBackendManager::self()->backend();
|
||||
QList< Device* > devices = backend->scanDevices( true );
|
||||
|
@ -546,7 +554,7 @@ PartitionCoreModule::revert()
|
|||
QMutexLocker locker( &m_revertMutex );
|
||||
qDeleteAll( m_deviceInfos );
|
||||
m_deviceInfos.clear();
|
||||
init();
|
||||
doInit();
|
||||
updateIsDirty();
|
||||
emit reverted();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue