mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
Better way to detect free space
This commit is contained in:
parent
bd44729328
commit
cdfb890e17
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ namespace PMUtils
|
|||
|
||||
bool isPartitionFreeSpace( Partition* partition )
|
||||
{
|
||||
return partition->fileSystem().type() == FileSystem::Unknown;
|
||||
return partition->roles().has( PartitionRole::Unallocated );
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue