新增信号引起自动更新的备份报错问题
This commit is contained in:
parent
f078dde013
commit
f50c2533a6
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue