Browse Source

Reload plugin parameters after loading project in carla-plugin

Fixes #1217

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
6682c11484
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      source/backend/engine/CarlaEngineNative.cpp

+ 5
- 0
source/backend/engine/CarlaEngineNative.cpp View File

@@ -1851,6 +1851,8 @@ bool CarlaEngineNativeUI::msgReceived(const char* const msg) noexcept
try {
ok = fEngine->loadFile(filename);
} CARLA_SAFE_EXCEPTION("loadFile");

fEngine->reloadFromUI();
}
else if (std::strcmp(msg, "load_project") == 0)
{
@@ -1861,6 +1863,8 @@ bool CarlaEngineNativeUI::msgReceived(const char* const msg) noexcept
try {
ok = fEngine->loadProject(filename, true);
} CARLA_SAFE_EXCEPTION("loadProject");

fEngine->reloadFromUI();
}
else if (std::strcmp(msg, "save_project") == 0)
{
@@ -2023,6 +2027,7 @@ bool CarlaEngineNativeUI::msgReceived(const char* const msg) noexcept
CARLA_SAFE_ASSERT_RETURN(readNextLineAsUInt(pluginId), true);

ok = fEngine->clonePlugin(pluginId);
fEngine->reloadFromUI();
}
else if (std::strcmp(msg, "replace_plugin") == 0)
{


Loading…
Cancel
Save