新增信号引起自动更新的备份报错问题

This commit is contained in:
zhaominyong 2022-05-27 11:54:58 +08:00
parent f078dde013
commit f50c2533a6
1 changed files with 1 additions and 2 deletions

View File

@ -340,14 +340,13 @@ void MyBackupManager::autoBackUpForSystemUpdate_noreturn(const QString& autoback
worker->setParam(backupWrapper); worker->setParam(backupWrapper);
connect(worker, &Worker::checkResult, this, [&](int result) { connect(worker, &Worker::checkResult, this, [&](int result) {
emit this->sendStartBackupResult(result);
switch (result) { switch (result) {
case int(BackupResult::CHECK_ENV_SUCCESS) : case int(BackupResult::CHECK_ENV_SUCCESS) :
case int(BackupResult::MKSQUASHFS_START_SUCCESS) : case int(BackupResult::MKSQUASHFS_START_SUCCESS) :
case int(BackupResult::BACKUP_START_SUCCESS) : case int(BackupResult::BACKUP_START_SUCCESS) :
break; break;
default: default:
emit this->sendStartBackupResult(result);
this->finished(); this->finished();
if (!Utils::isRunning("kybackup")) { if (!Utils::isRunning("kybackup")) {
this->umountBackupPartition(); this->umountBackupPartition();