添加等待2秒的时间

This commit is contained in:
zhaominyong 2022-01-25 17:42:39 +08:00
parent 1384c1d513
commit 22e0266c45
3 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,6 @@ void DataBackup::initSecondWidget()
if (GlobelBackupInfo::inst().hasBackupPartition()) {
QString qsLocalDefaultPath = Utils::getSysRootPath() + BACKUP_SNAPSHOTS_PATH;
qsLocalDefaultPath.replace("//", "/");
this->m_prefixDestPath = "";
this->m_udiskPaths << "";
comboSelect->addItem(iconFolder, tr("local default path : ") + qsLocalDefaultPath);
}
@ -1282,6 +1281,7 @@ void DataBackup::initFifthWidget()
// 不要使用电脑,以防数据丢失
labelTip->setDeplayText(tr("Do not use computer in case of data loss"));
cancel->setEnabled(true);
Utils::wait(2);
// 开始备份
this->on_backup_start();

View File

@ -630,6 +630,7 @@ void DataRestore::initThirdWidget()
connect(this, &DataRestore::startRestore, this, [=] {
progressBar->setPersent(0);
movie->start();
Utils::wait(2);
// 开始还原
this->on_restore_start();

View File

@ -211,7 +211,6 @@ void GhostImage::initSecondWidget()
if (GlobelBackupInfo::inst().hasBackupPartition()) {
QString qsLocalDefaultPath = Utils::getSysRootPath() + GHOST_PATH;
qsLocalDefaultPath.replace("//", "/");
this->m_prefixDestPath = "";
this->m_udiskPaths << "";
comboSelect->addItem(iconFolder, tr("local default path : ") + qsLocalDefaultPath);
}