Add drainage double confirm.
This commit is contained in:
@@ -205,6 +205,11 @@ void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
|
||||
});
|
||||
connect(mBtnDrainage, &QToolButton::clicked, [=](bool aSatus) {
|
||||
//Drainage
|
||||
if(aSatus && DialogManager::Default()->requestAlertMessage(tr("Make sure to open the drain valve ?"), DialogButtonMode::OkAndCancel, tr("Confirm Drainage")) == QDialog::Rejected)
|
||||
{
|
||||
mBtnDrainage->setChecked(!aSatus);
|
||||
return;
|
||||
}
|
||||
mBtnDrainage->setEnabled(false);
|
||||
if(aSatus == true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user