107778 【备份还原4.0.14】系统备份中点击取消,取消系统备份后,之前的系统备份都被删除

This commit is contained in:
zhaominyong 2022-02-24 16:19:15 +08:00
parent 310c94c8d3
commit b63e7dfb6c
4 changed files with 12 additions and 0 deletions

View File

@ -96,6 +96,9 @@ void DataBackupProxy::cancelEx()
*/
void DataBackupProxy::deleteFailedData()
{
if (m_curUuid.isEmpty())
return;
// 1、删除备份目录
QString destPath = Utils::getSysRootPath() + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid;
destPath.replace("//", "/");

View File

@ -96,6 +96,9 @@ void SystemBackupProxy::cancelEx()
*/
void SystemBackupProxy::deleteFailedData()
{
if (m_curUuid.isEmpty())
return;
// 1、删除备份目录
QString destPath = Utils::getSysRootPath() + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid;
destPath.replace("//", "/");

View File

@ -102,6 +102,9 @@ void UDiskDataBackupProxy::cancelEx()
*/
void UDiskDataBackupProxy::deleteFailedData()
{
if (m_curUuid.isEmpty())
return;
// 1、删除备份目录
QString destPath = m_backupWrapper.m_prefixDestPath + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid;
destPath.replace("//", "/");

View File

@ -119,6 +119,9 @@ void UDiskSystemBackupProxy::cancelEx()
*/
void UDiskSystemBackupProxy::deleteFailedData()
{
if (m_curUuid.isEmpty())
return;
// 1、删除备份目录
QString destPath = m_backupWrapper.m_prefixDestPath + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid;
destPath.replace("//", "/");