mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-28 15:38:48 +01:00
Enable Help button for Nyquist effects
This commit is contained in:
@@ -200,7 +200,8 @@ void HelpSystem::ShowHtmlText(wxWindow *pParent,
|
||||
void HelpSystem::ShowHelpDialog(wxWindow *parent,
|
||||
const wxString &localFileName,
|
||||
const wxString &remoteURL,
|
||||
bool bModal)
|
||||
bool bModal,
|
||||
bool alwaysDefaultBrowser)
|
||||
{
|
||||
wxASSERT(parent); // to justify safenew
|
||||
AudacityProject * pProj = GetActiveProject();
|
||||
@@ -250,7 +251,7 @@ void HelpSystem::ShowHelpDialog(wxWindow *parent,
|
||||
Text.Replace( wxT("*URL*"), remoteURL );
|
||||
ShowHtmlText( parent, _("Help on the Internet"), Text, false, bModal );
|
||||
}
|
||||
else if( HelpMode == wxT("Local") )
|
||||
else if( HelpMode == wxT("Local") || alwaysDefaultBrowser)
|
||||
{
|
||||
// Local file, External browser
|
||||
OpenInDefaultBrowser( wxString(wxT("file:"))+localFileName );
|
||||
|
||||
@@ -57,10 +57,13 @@ public:
|
||||
/// file names containing a '#' are not (on any platform).
|
||||
/// @param bModal Whether the resulting dialogue should be modal or not.
|
||||
/// Default is modeless dialogue
|
||||
/// @param alwaysDefaultBrowser Force use of default web browser.
|
||||
/// Default allows built in browser for local files.
|
||||
static void ShowHelpDialog(wxWindow *parent,
|
||||
const wxString &localFileName,
|
||||
const wxString &remoteURL,
|
||||
bool bModal = false);
|
||||
bool bModal = false,
|
||||
bool alwaysDefaultBrowser = false);
|
||||
|
||||
/// Displays a page from the Audacity manual in your browser, if
|
||||
/// it's available locally, OR else links to the internet.
|
||||
|
||||
Reference in New Issue
Block a user