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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user