This commit is contained in:
zhaominyong 2022-01-20 15:08:22 +08:00
parent 536bda95a3
commit 1a8fd618d8
6 changed files with 13 additions and 2 deletions

View File

@ -160,12 +160,18 @@ void UDiskGhostImageProxy::cancelEx()
*/
void UDiskGhostImageProxy::deleteFailedData()
{
// 1、删除镜像文件
// 1、删除临时镜像文件
QFile kyimg(m_kyimg);
if (kyimg.exists())
kyimg.remove();
}
// 2、删除目标镜像文件
QString kyimgFile = m_destPath + "/" + m_backupWrapper.m_backupName;
kyimgFile.replace("//", "/");
QFile kyimgDest(kyimgFile);
if (kyimgDest.exists())
kyimgDest.remove();
}
/**
* @brief ghost镜像

View File

@ -980,6 +980,7 @@ void DataBackup::on_checkEnv_end(int result)
break;
}
Utils::wait(2);
emit checkEnvResult(bRst, errMsg, errTip);
GlobelBackupInfo::inst().setIsBusy(false);
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &DataBackup::on_checkEnv_end);

View File

@ -522,6 +522,7 @@ void DataRestore::on_checkEnv_end(int result)
break;
}
Utils::wait(2);
emit checkEnvResult(bRst, errMsg, errTip);
GlobelBackupInfo::inst().setIsBusy(false);
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &DataRestore::on_checkEnv_end);

View File

@ -587,6 +587,7 @@ void GhostImage::on_checkEnv_end(int result)
break;
}
Utils::wait(2);
emit checkEnvResult(bRst, errMsg, errTip);
GlobelBackupInfo::inst().setIsBusy(false);
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &GhostImage::on_checkEnv_end);

View File

@ -570,6 +570,7 @@ void SystemBackup::on_checkEnv_end(int result)
break;
}
Utils::wait(2);
emit checkEnvResult(bRst, errMsg, errTip);
GlobelBackupInfo::inst().setIsBusy(false);
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &SystemBackup::on_checkEnv_end);

View File

@ -548,6 +548,7 @@ void SystemRestore::on_checkEnv_end(int result)
break;
}
Utils::wait(2);
emit checkEnvResult(bRst, errMsg, errTip);
GlobelBackupInfo::inst().setIsBusy(false);
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &SystemRestore::on_checkEnv_end);