mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
Invalidate colors cache on delete.
This commit is contained in:
parent
9f1f3a8f54
commit
c08eecbbaf
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include "core/PartitionCoreModule.h"
|
#include "core/PartitionCoreModule.h"
|
||||||
|
|
||||||
#include "core/BootLoaderModel.h"
|
#include "core/BootLoaderModel.h"
|
||||||
|
#include "core/ColorUtils.h"
|
||||||
#include "core/DeviceModel.h"
|
#include "core/DeviceModel.h"
|
||||||
#include "core/PartitionInfo.h"
|
#include "core/PartitionInfo.h"
|
||||||
#include "core/PartitionIterator.h"
|
#include "core/PartitionIterator.h"
|
||||||
|
@ -258,6 +259,11 @@ PartitionCoreModule::deletePartition( Device* device, Partition* partition )
|
||||||
deletePartition( device, partition );
|
deletePartition( device, partition );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( partition->roles().has( PartitionRole::Logical ) )
|
||||||
|
{
|
||||||
|
ColorUtils::invalidateCache();
|
||||||
|
}
|
||||||
|
|
||||||
QList< Calamares::job_ptr >& jobs = deviceInfo->jobs;
|
QList< Calamares::job_ptr >& jobs = deviceInfo->jobs;
|
||||||
if ( partition->state() == Partition::StateNew )
|
if ( partition->state() == Partition::StateNew )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue