do not set operation pending if no device connected

This commit is contained in:
Jan Käberich 2024-04-12 12:23:00 +02:00
parent 626d4110e2
commit 73ba0f9692
2 changed files with 12 additions and 4 deletions

View file

@ -983,7 +983,9 @@ void VNA::UpdateAverageCount()
void VNA::SettingsChanged(bool resetTraces, int delay)
{
setOperationPending(true);
if(window->getDevice()) {
setOperationPending(true);
}
configurationTimer.start(delay);
changingSettings = true;
configurationTimerResetTraces = resetTraces;
@ -1859,7 +1861,9 @@ void VNA::ResetLiveTraces()
traceModel.clearLiveData();
UpdateAverageCount();
UpdateCalWidget();
setOperationPending(true);
if(window->getDevice()) {
setOperationPending(true);
}
}
bool VNA::LoadCalibration(QString filename)