Browse Source

Fix logic around LV2 state save when no gui is available

Signed-off-by: falkTX <falktx@falktx.com>
pull/375/head
falkTX 3 years ago
parent
commit
72576cba92
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      distrho/src/DistrhoPluginLV2.cpp

+ 4
- 2
distrho/src/DistrhoPluginLV2.cpp View File

@@ -938,8 +938,8 @@ public:

#if ! DISTRHO_PLUGIN_HAS_UI && ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
// do not save UI-only messages if there is no UI available
if ((hints & kStateIsOnlyForUI) == 0x0)
continue;
if (hints & kStateIsOnlyForUI)
break;
#endif

if (hints & kStateIsHostReadable)
@@ -966,6 +966,8 @@ public:
value.length()+1,
urid,
LV2_STATE_IS_POD|LV2_STATE_IS_PORTABLE);

break;
}
}



Loading…
Cancel
Save