[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:
Adriaan de Groot 2018-05-16 07:13:35 -04:00
parent 7df143f64a
commit 6739b81c2a

View File

@ -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();
}