Skip to content

Commit

Permalink
CLAP preset loaded bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Jan 30, 2024
1 parent dfd267c commit eda8931
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,17 @@ void PresetManager::loadPreset (const Preset& preset)

#if HAS_CLAP_JUCE_EXTENSIONS
if (preset.getPresetFile() == juce::File {})
{
clapPresetLoadedBroadcaster (CLAP_PRESET_DISCOVERY_LOCATION_PLUGIN,
nullptr,
preset.getName().toRawUTF8());
clapPresetLoadedBroadcaster (CLAP_PRESET_DISCOVERY_LOCATION_FILE,
preset.getPresetFile().getFullPathName().toRawUTF8(),
nullptr);
}
else
{
clapPresetLoadedBroadcaster (CLAP_PRESET_DISCOVERY_LOCATION_FILE,
preset.getPresetFile().getFullPathName().toRawUTF8(),
nullptr);
}
#endif
}

Expand Down

0 comments on commit eda8931

Please sign in to comment.