Browse Source

Set PLUGIN_HAS_CUSTOM_EMBED_UI flag for LV2 plugins as possible

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.1
falkTX 3 years ago
parent
commit
ae6e2c575c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      source/backend/plugin/CarlaPluginLV2.cpp

+ 17
- 0
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -3194,6 +3194,23 @@ public:
{
pData->hints |= PLUGIN_HAS_CUSTOM_UI;

if (fUI.type == UI::TYPE_EMBED)
{
switch (fUI.rdfDescriptor->Type)
{
case LV2_UI_GTK2:
case LV2_UI_GTK3:
case LV2_UI_QT4:
case LV2_UI_QT5:
case LV2_UI_EXTERNAL:
case LV2_UI_OLD_EXTERNAL:
break;
default:
pData->hints |= PLUGIN_HAS_CUSTOM_EMBED_UI;
break;
}
}

if (fUI.type == UI::TYPE_EMBED || fUI.type == UI::TYPE_EXTERNAL)
pData->hints |= PLUGIN_NEEDS_UI_MAIN_THREAD;
}


Loading…
Cancel
Save