1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 07:40:23 +02:00

Rename Tenacity's config file

Resolves #362

Signed-off-by: fossdd <fossdd@pwned.life>
This commit is contained in:
fossdd 2021-07-24 15:51:54 +00:00 committed by Sol Fisher Romanoff
parent dd97468062
commit 3d7de4f2c7
No known key found for this signature in database
GPG Key ID: 0E0ACA5D1C244E1F
6 changed files with 11 additions and 11 deletions

View File

@ -1197,7 +1197,7 @@ bool AudacityApp::OnInit() {
// Initialize preferences and language
{
wxFileName configFileName(FileNames::DataDir(), wxT("audacity.cfg"));
wxFileName configFileName(FileNames::DataDir(), wxT("tenacity.cfg"));
auto appName = wxTheApp->GetAppName();
InitPreferences(AudacityFileConfig::Create(
appName, wxEmptyString,

View File

@ -73,7 +73,7 @@ ProjectSettings::ProjectSettings(AudacityProject &project)
mRate = intRate;
if ( !wasDefined ) {
// The default given above can vary with host/devices. So unless there is
// an entry for the default sample rate in audacity.cfg, Audacity can open
// an entry for the default sample rate in tenacity.cfg, Tenacity can open
// with a rate which is different from the rate with which it closed.
// See bug 1879.
QualitySettings::DefaultSampleRate.Write( mRate );

View File

@ -1608,8 +1608,8 @@ void CommandManager::CheckDups()
// must both be in either the first or the second group, so there is no need
// to test for this case.
// Note that if a user is using the full set of default shortcuts, and one
// of these is changed, then if /GUI/Shortcuts/FullDefaults is not set in audacity.cfg,
// because the defaults appear as user assigned shortcuts in audacity.cfg,
// of these is changed, then if /GUI/Shortcuts/FullDefaults is not set in tenacity.cfg,
// because the defaults appear as user assigned shortcuts in tenacity.cfg,
// the previous default overrides the changed default, and no duplicate can
// be introduced.
void CommandManager::RemoveDuplicateShortcuts()

View File

@ -141,7 +141,7 @@ EffectTruncSilence::EffectTruncSilence()
SetLinearEffectFlag(false);
// This used to be changeable via the audacity.cfg/registry. Doubtful that was
// This used to be changeable via the tenacity.cfg/registry. Doubtful that was
// ever done.
//
// Original comment:

View File

@ -743,9 +743,9 @@ void ToolManager::ReadConfig()
int vMajor, vMinor, vMicro;
gPrefs->GetVersionKeysInit(vMajor, vMinor, vMicro);
bool useLegacyDock = false;
// note that vMajor, vMinor, and vMicro will all be zero if either it's a new audacity.cfg file
// note that vMajor, vMinor, and vMicro will all be zero if either it's a new tenaciyu.cfg file
// or the version is less than 1.3.13 (when there were no version keys according to the comments in
// InitPreferences()). So for new audacity.cfg
// InitPreferences()). So for new tenacity.cfg
// file useLegacyDock will be true, but this doesn't matter as there are no Dock or DockV2 keys in the file yet.
if (vMajor <= 1 ||
(vMajor == 2 && (vMinor <= 1 || (vMinor == 2 && vMicro <= 1)))) // version <= 2.2.1
@ -854,7 +854,7 @@ void ToolManager::ReadConfig()
}
#else
// note that this section is here because if you had been using sync-lock and now you aren't,
// the space for the extra button is stored in audacity.cfg, and so you get an extra space
// the space for the extra button is stored in tenacity.cfg, and so you get an extra space
// in the EditToolbar.
// It is needed so that the meterToolbar size gets preserved.
// Longer-term we should find a better fix for this.

View File

@ -47,7 +47,7 @@ public:
virtual bool DeleteGroup(const wxString& key) wxOVERRIDE;
virtual bool DeleteAll() wxOVERRIDE;
// Set and Get values of the version major/minor/micro keys in audacity.cfg when Audacity first opens
// Set and Get values of the version major/minor/micro keys in tenacity.cfg when Tenacity first opens
void SetVersionKeysInit( int major, int minor, int micro)
{
mVersionMajorKeyInit = major;
@ -90,8 +90,8 @@ private:
std::unique_ptr<wxFileConfig> mConfig;
// values of the version major/minor/micro keys in audacity.cfg
// when Audacity first opens
// values of the version major/minor/micro keys in tenacity.cfg
// when Tenacity first opens
int mVersionMajorKeyInit{};
int mVersionMinorKeyInit{};
int mVersionMicroKeyInit{};