File tree Expand file tree Collapse file tree
ground/gcs/src/plugins/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -497,6 +497,16 @@ void ConfigInputWidget::enableControls(bool enable)
497497 } else {
498498 // Hide configAlarmStatus when disconnected
499499 ui->configAlarmStatus ->setVisible (false );
500+ if (wizardStep != wizardNone) {
501+ // Close input wizard
502+ wzCancel ();
503+ }
504+ if (ui->runCalibration ->isChecked ()) {
505+ // Close manual calibration
506+ ui->runCalibration ->setChecked (false );
507+ ui->runCalibration ->setText (tr (" Start Manual Calibration" ));
508+ emit inputCalibrationStatus (false );
509+ }
500510 }
501511}
502512
@@ -1931,6 +1941,10 @@ void ConfigInputWidget::updateCalibration()
19311941
19321942void ConfigInputWidget::simpleCalibration (bool enable)
19331943{
1944+ if (!isConnected ()) {
1945+ return ;
1946+ }
1947+
19341948 if (!safeOutputConfig) {
19351949 if (enable) {
19361950 QMessageBox::warning (this , tr (" Warning" ), tr (" There is something wrong in <b>Output tab</b>."
You can’t perform that action at this time.
0 commit comments