provide an environment variable to disable MIDNAM loading (just for testing purposes)

This commit is contained in:
Paul Davis 2025-03-04 11:26:40 -07:00
parent 34a4eea0d5
commit e4b38b33b9

View file

@ -290,7 +290,9 @@ MidiPatchManager::load_midnams ()
void
MidiPatchManager::load_midnams_in_thread ()
{
_midnam_load_thread = PBD::Thread::create (std::bind (&MidiPatchManager::load_midnams, this), "MIDNAMLoader");
if (!g_getenv ("ARDOUR_NO_PATCHFILES")) {
_midnam_load_thread = PBD::Thread::create (std::bind (&MidiPatchManager::load_midnams, this), "MIDNAMLoader");
}
}
void