13
0

Properly clear preset-list (compare to invalidate_preset_cache)

This commit is contained in:
Robin Gareus 2023-06-28 19:16:16 +02:00
parent f9396cc19b
commit ee0693d121
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -362,6 +362,7 @@ const Plugin::PresetRecord *
Plugin::preset_by_label (const string& label)
{
if (!_have_presets) {
_presets.clear ();
find_presets ();
_have_presets = true;
}
@ -383,6 +384,7 @@ Plugin::preset_by_uri (const string& uri)
return 0;
}
if (!_have_presets) {
_presets.clear ();
find_presets ();
_have_presets = true;
}
@ -469,6 +471,7 @@ Plugin::get_presets ()
vector<PresetRecord> p;
if (!_have_presets) {
_presets.clear ();
find_presets ();
_have_presets = true;
}