mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
New revertAllDevices operation in PCM.
This commit is contained in:
parent
90e028a2b0
commit
a1e4667ebe
2 changed files with 12 additions and 0 deletions
|
@ -496,6 +496,7 @@ PartitionCoreModule::setBootLoaderInstallPath( const QString& path )
|
||||||
void
|
void
|
||||||
PartitionCoreModule::revert()
|
PartitionCoreModule::revert()
|
||||||
{
|
{
|
||||||
|
QMutexLocker locker( &m_revertMutex );
|
||||||
qDeleteAll( m_deviceInfos );
|
qDeleteAll( m_deviceInfos );
|
||||||
m_deviceInfos.clear();
|
m_deviceInfos.clear();
|
||||||
init();
|
init();
|
||||||
|
@ -504,6 +505,16 @@ PartitionCoreModule::revert()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
PartitionCoreModule::revertAllDevices()
|
||||||
|
{
|
||||||
|
foreach ( DeviceInfo* devInfo, m_deviceInfos )
|
||||||
|
{
|
||||||
|
revertDevice( devInfo->device.data() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PartitionCoreModule::revertDevice( Device* dev )
|
PartitionCoreModule::revertDevice( Device* dev )
|
||||||
{
|
{
|
||||||
|
|
|
@ -98,6 +98,7 @@ public:
|
||||||
QList< Partition* > efiSystemPartitions() const;
|
QList< Partition* > efiSystemPartitions() const;
|
||||||
|
|
||||||
void revert();
|
void revert();
|
||||||
|
void revertAllDevices();
|
||||||
void revertDevice( Device* dev );
|
void revertDevice( Device* dev );
|
||||||
void asyncRevertDevice( Device* dev, std::function< void() > callback );
|
void asyncRevertDevice( Device* dev, std::function< void() > callback );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue