mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
Add PMUtils::isPartitionNew()
This commit is contained in:
parent
091c3c2757
commit
fa30fe147f
2 changed files with 7 additions and 0 deletions
|
@ -30,4 +30,9 @@ bool isPartitionFreeSpace( Partition* partition )
|
|||
return partition->roles().has( PartitionRole::Unallocated );
|
||||
}
|
||||
|
||||
bool isPartitionNew( Partition* partition )
|
||||
{
|
||||
return partition->state() == Partition::StateNew;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -25,6 +25,8 @@ namespace PMUtils
|
|||
|
||||
bool isPartitionFreeSpace( Partition* );
|
||||
|
||||
bool isPartitionNew( Partition* );
|
||||
|
||||
}
|
||||
|
||||
#endif /* PMUTILS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue