Add UI config-option for freesound download cache

This also invalidates any prior libardour rc-config
(which was not previously exposed as config).

Note: old existing cache is not moved or invalidated
when the path changes.
This commit is contained in:
Robin Gareus 2022-05-20 22:02:26 +02:00
parent f925dd675e
commit 7fa207d9ee
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 20 additions and 1 deletions

View file

@ -106,7 +106,7 @@ Mootcher:: ~Mootcher()
void Mootcher::ensureWorkingDir ()
{
std::string p = ARDOUR::Config->get_freesound_download_dir();
std::string const& p = UIConfiguration::instance ().get_freesound_dir ();
DEBUG_TRACE(PBD::DEBUG::Freesound, "ensureWorkingDir() - " + p + "\n");
if (!Glib::file_test (p, Glib::FILE_TEST_IS_DIR)) {