Skip to content

Commit

Permalink
fix(effects): Fix parameters of effect not showing up when not in def…
Browse files Browse the repository at this point in the history
…ault settings file

fixes mixxxdj/issues/10834
  • Loading branch information
Swiftb0y committed Sep 19, 2022
1 parent f8a7d7b commit 9b5c085
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/effects/presets/effectpresetmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ void EffectPresetManager::loadDefaultEffectPresets() {
file.close();
continue;
}
EffectPresetPointer pEffectPreset(new EffectPreset(doc.documentElement()));
if (!pEffectPreset->isEmpty()) {
auto presetFromFile = EffectPreset(doc.documentElement());
if (!presetFromFile.isEmpty()) {
EffectManifestPointer pManifest = m_pBackendManager->getManifest(
pEffectPreset->id(), pEffectPreset->backendType());
presetFromFile.id(), presetFromFile.backendType());
if (pManifest) {
auto pEffectPreset = EffectPresetPointer(new EffectPreset(pManifest));
pEffectPreset->updateParametersFrom(presetFromFile);
m_defaultPresets.insert(pManifest, pEffectPreset);
}
}
Expand Down

0 comments on commit 9b5c085

Please sign in to comment.