mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
[partition] Tell PartitionInfo about desired flags
- When creating a partition, or changing flags, tell the PartitionInfo about those desired flags.
This commit is contained in:
parent
7df143f64a
commit
6739b81c2a
1 changed files with 2 additions and 1 deletions
|
@ -258,6 +258,7 @@ PartitionCoreModule::createPartition( Device* device,
|
|||
{
|
||||
SetPartFlagsJob* fJob = new SetPartFlagsJob( device, partition, flags );
|
||||
deviceInfo->jobs << Calamares::job_ptr( fJob );
|
||||
PartitionInfo::setFlags( partition, flags );
|
||||
}
|
||||
|
||||
refresh();
|
||||
|
@ -381,8 +382,8 @@ PartitionCoreModule::setPartitionFlags( Device* device,
|
|||
PartitionModel::ResetHelper( partitionModelForDevice( device ) );
|
||||
|
||||
SetPartFlagsJob* job = new SetPartFlagsJob( device, partition, flags );
|
||||
|
||||
deviceInfo->jobs << Calamares::job_ptr( job );
|
||||
PartitionInfo::setFlags( partition, flags );
|
||||
|
||||
refresh();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue