feat: Add empty scan data corrupted process.

This commit is contained in:
sunwen
2024-05-29 17:14:09 +08:00
parent 23a747bde4
commit e9396c3054
8 changed files with 35 additions and 7 deletions

View File

@@ -75,6 +75,7 @@ MainWindow::MainWindow(QWidget* aParent)
connect(EventCenter::Default(), &EventCenter::LoginSuccess, this,&MainWindow::checkEmptyScanValidity);
connect(EventCenter::Default(), &EventCenter::EmptyScanFinished, this,&MainWindow::enableAllTabWidget);
connect(EventCenter::Default(), &EventCenter::EmptyScanDataCorrupted, this, &MainWindow::handleEmptyScanDataCorrupted);
connect(mTabWidget, &QTabWidget::currentChanged, this, [this](int aIndex)
{
@@ -372,3 +373,12 @@ void MainWindow::enableAllTabWidget()
}
}
void MainWindow::handleEmptyScanDataCorrupted()
{
mTabWidget->setTabEnabled(0, false);
mTabWidget->setTabEnabled(1, false);
mTabWidget->setTabEnabled(2, false);
mTabWidget->setCurrentIndex(3);
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"));
}