PEAK: Cut-n-paste, works, amazing !

This commit is contained in:
vsonnier
2016-06-09 19:33:52 +02:00
parent 348b5404c3
commit 1e2f12a571
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -1478,6 +1478,9 @@ void AppFrame::OnIdle(wxIdleEvent& event) {
int peakHoldMode = peakHoldButton->getSelection();
if (peakHoldButton->modeChanged()) {
wxGetApp().getSpectrumProcessor()->setPeakHold(peakHoldMode == 1);
//make the peak hold act on the current dmod also, like a zoomed-in version.
wxGetApp().getDemodSpectrumProcessor()->setPeakHold(peakHoldMode == 1);
peakHoldButton->clearModeChanged();
}