mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 04:15:37 -04:00
Either count new partitions or existing partitions for colors.
This commit is contained in:
parent
bd6c813e4e
commit
9065882da4
1 changed files with 6 additions and 3 deletions
|
@ -92,9 +92,12 @@ colorForPartition( Partition* partition )
|
||||||
break;
|
break;
|
||||||
if ( !PMUtils::isPartitionFreeSpace( child ) &&
|
if ( !PMUtils::isPartitionFreeSpace( child ) &&
|
||||||
!child->hasChildren() )
|
!child->hasChildren() )
|
||||||
++colorIdx;
|
{
|
||||||
if ( PMUtils::isPartitionNew( child ) )
|
if ( PMUtils::isPartitionNew( child ) )
|
||||||
++newColorIdx;
|
++newColorIdx;
|
||||||
|
else
|
||||||
|
++colorIdx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( PMUtils::isPartitionNew( partition ) )
|
if ( PMUtils::isPartitionNew( partition ) )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue