Partitions: code-formatting
This commit is contained in:
parent
d18e3dc385
commit
cc7631dd99
@ -209,23 +209,20 @@ PartitionCoreModule::doInit()
|
|||||||
if ( jt->path == partition->partitionPath() &&
|
if ( jt->path == partition->partitionPath() &&
|
||||||
partition->fileSystem().supportGetUUID() != FileSystem::cmdSupportNone &&
|
partition->fileSystem().supportGetUUID() != FileSystem::cmdSupportNone &&
|
||||||
!partition->fileSystem().uuid().isEmpty() )
|
!partition->fileSystem().uuid().isEmpty() )
|
||||||
{
|
|
||||||
jt->uuid = partition->fileSystem().uuid();
|
jt->uuid = partition->fileSystem().uuid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for ( auto deviceInfo : m_deviceInfos )
|
for ( auto deviceInfo : m_deviceInfos )
|
||||||
{
|
|
||||||
deviceInfo->partitionModel->init( deviceInfo->device.data(), m_osproberLines );
|
deviceInfo->partitionModel->init( deviceInfo->device.data(), m_osproberLines );
|
||||||
}
|
|
||||||
|
|
||||||
m_bootLoaderModel->init( devices );
|
m_bootLoaderModel->init( devices );
|
||||||
|
|
||||||
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
|
//FIXME: this should be removed in favor of
|
||||||
scanForEfiSystemPartitions(); //FIXME: this should be removed in favor of
|
|
||||||
// proper KPM support for EFI
|
// proper KPM support for EFI
|
||||||
|
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
|
||||||
|
scanForEfiSystemPartitions();
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionCoreModule::~PartitionCoreModule()
|
PartitionCoreModule::~PartitionCoreModule()
|
||||||
@ -457,9 +454,7 @@ PartitionCoreModule::jobs() const
|
|||||||
|
|
||||||
QStringList jobsDebug;
|
QStringList jobsDebug;
|
||||||
foreach ( auto job, lst )
|
foreach ( auto job, lst )
|
||||||
{
|
|
||||||
jobsDebug.append( job->prettyName() );
|
jobsDebug.append( job->prettyName() );
|
||||||
}
|
|
||||||
|
|
||||||
cDebug() << "PartitionCodeModule has been asked for jobs. About to return:"
|
cDebug() << "PartitionCodeModule has been asked for jobs. About to return:"
|
||||||
<< jobsDebug.join( "\n" );
|
<< jobsDebug.join( "\n" );
|
||||||
@ -517,9 +512,11 @@ PartitionCoreModule::refresh()
|
|||||||
updateHasRootMountPoint();
|
updateHasRootMountPoint();
|
||||||
updateIsDirty();
|
updateIsDirty();
|
||||||
m_bootLoaderModel->update();
|
m_bootLoaderModel->update();
|
||||||
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
|
|
||||||
scanForEfiSystemPartitions(); //FIXME: this should be removed in favor of
|
//FIXME: this should be removed in favor of
|
||||||
// proper KPM support for EFI
|
// proper KPM support for EFI
|
||||||
|
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
|
||||||
|
scanForEfiSystemPartitions();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PartitionCoreModule::updateHasRootMountPoint()
|
void PartitionCoreModule::updateHasRootMountPoint()
|
||||||
@ -627,9 +624,7 @@ void
|
|||||||
PartitionCoreModule::revertAllDevices()
|
PartitionCoreModule::revertAllDevices()
|
||||||
{
|
{
|
||||||
foreach ( DeviceInfo* devInfo, m_deviceInfos )
|
foreach ( DeviceInfo* devInfo, m_deviceInfos )
|
||||||
{
|
|
||||||
revertDevice( devInfo->device.data() );
|
revertDevice( devInfo->device.data() );
|
||||||
}
|
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -680,9 +675,7 @@ void
|
|||||||
PartitionCoreModule::clearJobs()
|
PartitionCoreModule::clearJobs()
|
||||||
{
|
{
|
||||||
foreach ( DeviceInfo* deviceInfo, m_deviceInfos )
|
foreach ( DeviceInfo* deviceInfo, m_deviceInfos )
|
||||||
{
|
|
||||||
deviceInfo->forgetChanges();
|
deviceInfo->forgetChanges();
|
||||||
}
|
|
||||||
updateIsDirty();
|
updateIsDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user