1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Use global ChoiceSettings variables, not coincidental string literals

This commit is contained in:
Paul Licameli
2019-04-02 18:40:42 -04:00
parent 9b41741074
commit 87a9e7ccbb
14 changed files with 41 additions and 30 deletions

View File

@@ -46,6 +46,7 @@
#include "../HelpText.h"
#include "../Prefs.h"
#include "../wxFileNameWrapper.h"
#include "../prefs/GUIPrefs.h"
#ifdef USE_ALPHA_MANUAL
const wxString HelpSystem::HelpHostname = wxT("alphamanual.audacityteam.org");
@@ -248,8 +249,8 @@ void HelpSystem::ShowHelp(wxWindow *parent,
// these next lines are for legacy cfg files (pre 2.0) where we had different modes
if( (HelpMode == wxT("Standard")) || (HelpMode == wxT("InBrowser")) )
{
HelpMode = wxT("Local");
gPrefs->Write(wxT("/GUI/Help"), HelpMode);
HelpMode = GUIManualLocation.Default().Internal();
GUIManualLocation.Write(HelpMode);
gPrefs->Flush();
}
}