attempt to fix --no-gui option for windows

This commit is contained in:
Jan Käberich 2022-03-03 12:28:59 +01:00
parent 6e07be0af5
commit c9ffdcd52b
25 changed files with 141 additions and 58 deletions

View file

@ -341,7 +341,9 @@ void AmplitudeCalDialog::AddPointDialog()
dev->SendCommandWithoutPayload(requestCommand());
d->show();
if(AppWindow::showGUI()) {
d->show();
}
}
void AmplitudeCalDialog::AutomaticMeasurementDialog()
@ -415,7 +417,9 @@ void AmplitudeCalDialog::AutomaticMeasurementDialog()
SetupNextAutomaticPoint(automatic.isSourceCal);
});
automatic.dialog->show();
if(AppWindow::showGUI()) {
automatic.dialog->show();
}
}
void AmplitudeCalDialog::ReceivedMeasurement(Protocol::SpectrumAnalyzerResult res)