Browse Source

Destroy and recreate editor on lv2 ui cleanup, fixing vitalium

Signed-off-by: falkTX <falktx@falktx.com>
tags/2021-03-15
falkTX 4 years ago
parent
commit
a058eaa063
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp

+ 7
- 0
libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp View File

@@ -524,6 +524,10 @@ public:
if (parentContainer->isOnDesktop())
parentContainer->removeFromDesktop();
}

filter->editorBeingDeleted (editor.get());
editor = nullptr;
parentContainer = nullptr;
}
}

@@ -696,6 +700,9 @@ public:
}
else
{
if (editor == nullptr)
editor = std::unique_ptr<AudioProcessorEditor>(filter->createEditorIfNeeded());

resetParentUI (features);
*widget = parentContainer->getWindowHandle();
}


Loading…
Cancel
Save