Add double confirm with start empty scan.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "SystemCorrectionForm.h"
|
||||
#include "db/SQLHelper.h"
|
||||
#include "event/EventCenter.h"
|
||||
#include "dialogs/DialogManager.h"
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
@@ -92,6 +93,11 @@ void SystemCorrectionForm::init()
|
||||
|
||||
connect(emptyScanButton, &QPushButton::clicked, []()
|
||||
{
|
||||
int result = DialogManager::Default()->requestAlertMessage(tr("Please make sure the holder is only contain water!"),DialogButtonMode::OkAndCancel,tr("Confirm Scan"));
|
||||
if (result != QDialog::Accepted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
QString null;
|
||||
EventCenter::Default()->triggerEvent(RequestEmptyScan, nullptr, (QObject*)&null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user