mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
More readable job queue
This commit is contained in:
parent
3fa3694f90
commit
8a7e6c9348
1 changed files with 5 additions and 3 deletions
|
@ -227,6 +227,8 @@ PartitionCoreModule::deletePartition( Device* device, Partition* partition )
|
||||||
QList< Calamares::job_ptr >
|
QList< Calamares::job_ptr >
|
||||||
PartitionCoreModule::jobs() const
|
PartitionCoreModule::jobs() const
|
||||||
{
|
{
|
||||||
|
dumpQueue();
|
||||||
|
|
||||||
QList< Calamares::job_ptr > lst;
|
QList< Calamares::job_ptr > lst;
|
||||||
for ( auto info : m_deviceInfos )
|
for ( auto info : m_deviceInfos )
|
||||||
lst << info->jobs;
|
lst << info->jobs;
|
||||||
|
@ -236,12 +238,12 @@ PartitionCoreModule::jobs() const
|
||||||
void
|
void
|
||||||
PartitionCoreModule::dumpQueue() const
|
PartitionCoreModule::dumpQueue() const
|
||||||
{
|
{
|
||||||
cDebug() << "Queue:";
|
cDebug() << "# Queue:";
|
||||||
for ( auto info : m_deviceInfos )
|
for ( auto info : m_deviceInfos )
|
||||||
{
|
{
|
||||||
cDebug() << "Device:" << info->device->name();
|
cDebug() << "## Device:" << info->device->name();
|
||||||
for ( auto job : info->jobs )
|
for ( auto job : info->jobs )
|
||||||
cDebug() << job->prettyName();
|
cDebug() << "-" << job->prettyName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue