Don't show tuner on spectral display while disabled (#1236)

This commit is contained in:
Doug Hoffman
2022-05-07 06:30:11 -04:00
committed by GitHub
parent 925353d515
commit 36de81248c
3 changed files with 7 additions and 2 deletions

View File

@@ -423,6 +423,11 @@ public class SpectralDisplayPanel extends JPanel
public void showTuner(Tuner tuner)
{
clearTuner();
if(!SystemProperties.getInstance().get(SpectralDisplayPanel.SPECTRAL_DISPLAY_ENABLED, true))
{
//Spectral display is disabled, stop
return;
}
mComplexDftProcessor.clearBuffer();