1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

GLSpectrum: synchronize spectrum running with the GUI spectrum freeze button. Fixes issue #561

This commit is contained in:
f4exb
2020-07-10 00:08:42 +02:00
parent 784708b71d
commit ac5c4dc070
3 changed files with 26 additions and 9 deletions
+8
View File
@@ -527,6 +527,14 @@ bool GLSpectrumGUI::handleMessage(const Message& message)
ui->wsSpectrum->blockSignals(false);
return true;
}
else if (SpectrumVis::MsgStartStop::match(message))
{
const SpectrumVis::MsgStartStop& msg = (SpectrumVis::MsgStartStop&) message;
ui->freeze->blockSignals(true);
ui->freeze->doToggle(!msg.getStartStop()); // this is a freeze so stop is true
ui->freeze->blockSignals(false);
return true;
}
return false;
}