[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
@ -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…
Reference in New Issue
Block a user