mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
Use URIs to identify plugin-presets
This fixes duplicate AU presets when adding a new preset. Presets are kept in a std::map<URI,...> adding a new presets uses the file-URI as ID. Loaded presets needs to have the same URI.
This commit is contained in:
parent
ffd8855391
commit
9bf40bde3a
1 changed files with 1 additions and 1 deletions
|
|
@ -2555,7 +2555,7 @@ AUPlugin::find_presets ()
|
|||
*/
|
||||
|
||||
if (check_and_get_preset_name (get_comp()->Comp(), path, preset_name)) {
|
||||
user_preset_map[preset_name] = path;
|
||||
user_preset_map[preset_name] = "file:///" + path;
|
||||
DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU Preset File: %1 > %2\n", preset_name, path));
|
||||
} else {
|
||||
DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU INVALID Preset: %1 > %2\n", preset_name, path));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue