feat: Add progress in system correction page while empty scan data transfering.

This commit is contained in:
sunwen
2024-09-19 15:45:23 +08:00
parent 2d7c359a64
commit f679b81fb4
9 changed files with 259 additions and 67 deletions

View File

@@ -167,6 +167,7 @@ void MainWindow::checkEmptyScanValidity()
if(lastScanDate.isNull() || currentDate.daysTo(expirationScanDate) < 0)
{
mTabWidget->setCurrentIndex(3);
EventCenter::Default()->triggerEvent(EmptyScanDataExpire, nullptr, nullptr);
DialogManager::Default()->requestAlertMessage(tr("Please execute the empty scan, assist with system calibration, when empty scan is completed, the system should operate normally."), OkOnly, tr("Warning"));
mTabWidget->setTabEnabled(2, false);
mTabWidget->setTabEnabled(1, false);
@@ -382,6 +383,6 @@ void MainWindow::handleEmptyScanDataCorrupted()
mTabWidget->setTabEnabled(2, false);
mTabWidget->setTabEnabled(1, false);
mTabWidget->setTabEnabled(0, false);
EventCenter::Default()->triggerEvent(EmptyScanDataBroked, nullptr, nullptr);
DialogManager::Default()->requestAlertMessage(tr("Due to empty scan data corruption on the server, needs to be execute the empty scan. No other operations can be conducted until the scan is complete."), OkOnly, tr("Warning"));
}