Better way to detect free space
This commit is contained in:
parent
bd44729328
commit
cdfb890e17
@ -27,7 +27,7 @@ namespace PMUtils
|
||||
|
||||
bool isPartitionFreeSpace( Partition* partition )
|
||||
{
|
||||
return partition->fileSystem().type() == FileSystem::Unknown;
|
||||
return partition->roles().has( PartitionRole::Unallocated );
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Loading…
Reference in New Issue
Block a user