mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Bug 2566 - Spectrogram view: changing algorithm to Pitch (EAC) turns off "Enable Spectral Selection"
Made defaults consistent again. The spectral selection was off by default in some places, on by default in others.
This commit is contained in:
parent
f7c0ba837b
commit
05c6d62f78
@ -46,7 +46,7 @@ void SpectrogramSettings::Globals::LoadPrefs()
|
||||
{
|
||||
#ifdef SPECTRAL_SELECTION_GLOBAL_SWITCH
|
||||
spectralSelection
|
||||
= (gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), 0L) != 0);
|
||||
= (gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), 1L) != 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -379,7 +379,7 @@ void SpectrogramSettings::UpdatePrefs()
|
||||
#ifndef SPECTRAL_SELECTION_GLOBAL_SWITCH
|
||||
if (spectralSelection == defaults().spectralSelection) {
|
||||
int temp;
|
||||
gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), &temp, 0L);
|
||||
gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), &temp, 1L);
|
||||
spectralSelection = (temp != 0);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user