1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 08:31:13 +02:00

Redo 429fad6 without special logic in PrefsDialog.cpp

This commit is contained in:
Paul Licameli 2019-01-17 15:10:37 -05:00
parent 26f1aea2d4
commit 32a79c703b
2 changed files with 8 additions and 8 deletions

View File

@ -440,13 +440,6 @@ void PrefsDialog::OnPreview(wxCommandEvent & WXUNUSED(event))
void PrefsDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
{
wxString page = GetCurrentPanel()->HelpPageName();
// Currently (May2017) Spectrum Settings is the only preferences
// we ever display in a dialog on its own without others.
// We do so when it is configuring spectrums for a track.
// Because this happens, we want to visit a different help page.
// So we change the page name in the case of a page on its own.
if( !mCategories)
page.Replace( "Spectrograms_Preferences", "Spectrogram_Settings" );
HelpSystem::ShowHelp(this, page, true);
}

View File

@ -536,7 +536,14 @@ void SpectrumPrefs::EnableDisableSTFTOnlyControls()
wxString SpectrumPrefs::HelpPageName()
{
return "Spectrograms_Preferences";
// Currently (May2017) Spectrum Settings is the only preferences
// we ever display in a dialog on its own without others.
// We do so when it is configuring spectrums for a track.
// Because this happens, we want to visit a different help page.
// So we change the page name in the case of a page on its own.
return mWt
? "Spectrogram_Settings"
: "Spectrograms_Preferences";
}
BEGIN_EVENT_TABLE(SpectrumPrefs, PrefsPanel)