1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +01:00

Rename View Settings... to Spectrogram Settings... and enable it only for...

... spectrogram views, and don't show the Waveforms page.
This commit is contained in:
Paul Licameli
2015-08-19 00:13:56 -04:00
parent 0a41a1eba2
commit 112d2a903b
3 changed files with 11 additions and 12 deletions

View File

@@ -31,7 +31,7 @@
#include <algorithm>
SpectrumPrefs::SpectrumPrefs(wxWindow * parent, WaveTrack *wt)
: PrefsPanel(parent, _("Spectrograms"))
: PrefsPanel(parent, wt ? _("Spectrogram Settings") : _("Spectrograms"))
, mWt(wt)
, mPopulating(false)
{
@@ -403,7 +403,6 @@ bool SpectrumPrefs::Apply()
mTempSettings.ConvertToEnumeratedWindowSizes();
if (mWt && isOpenPage) {
// Future: open page will determine the track view type
mWt->SetDisplay(WaveTrack::Spectrum);
if (partner)
partner->SetDisplay(WaveTrack::Spectrum);