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:
parent
26f1aea2d4
commit
32a79c703b
@ -440,13 +440,6 @@ void PrefsDialog::OnPreview(wxCommandEvent & WXUNUSED(event))
|
|||||||
void PrefsDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
|
void PrefsDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxString page = GetCurrentPanel()->HelpPageName();
|
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);
|
HelpSystem::ShowHelp(this, page, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +536,14 @@ void SpectrumPrefs::EnableDisableSTFTOnlyControls()
|
|||||||
|
|
||||||
wxString SpectrumPrefs::HelpPageName()
|
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)
|
BEGIN_EVENT_TABLE(SpectrumPrefs, PrefsPanel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user