fixed fft smoothing not set on startup when enabled

This commit is contained in:
AlexandreRouma 2023-03-31 01:38:14 +02:00 committed by GitHub
parent 2eb030dd83
commit 800a8b22c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,7 @@ namespace displaymenu {
gui::waterfall.setFFTHold(fftHold);
fftSmoothing = core::configManager.conf["fftSmoothing"];
fftSmoothingSpeed = core::configManager.conf["fftSmoothingSpeed"];
gui::waterfall.setFFTSmoothing(fftSmoothing);
updateFFTSpeeds();
// Define and load UI scales
@ -233,4 +234,4 @@ namespace displaymenu {
ImGui::TextColored(ImVec4(1.0f, 1.0f, 0.0f, 1.0f), "Restart required.");
}
}
}
}