1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Migrate old chains...

... Copy old Chains files to Macros, once only per session, never overwriting.

Leave old files in place in case the user downgrades their Audacity.

When removing a Macro, remove also any like-named legacy chain.
This commit is contained in:
Paul Licameli
2018-03-14 20:07:36 -04:00
parent 6fe494df51
commit cc7bf5c328
4 changed files with 50 additions and 1 deletions

View File

@@ -190,6 +190,12 @@ wxString FileNames::HtmlHelpDir()
#endif
}
wxString FileNames::LegacyChainDir()
{
// Don't force creation of it
return wxFileName{ DataDir(), wxT("Chains") }.GetFullPath();
}
wxString FileNames::MacroDir()
{
return FileNames::MkDir( wxFileName( DataDir(), wxT("Macros") ).GetFullPath() );