Ildaeil: Support file-based-dialogs as GUI in LV2

Closes #64
This commit is contained in:
falkTX 2021-12-08 18:25:36 +00:00
parent 809558eb71
commit 4280063e19
2 changed files with 3 additions and 3 deletions

2
carla

@ -1 +1 @@
Subproject commit 3b933fafb9e689e881c5dbac8447ecefc2d3f2fd
Subproject commit 1dbaf858169ff24498af99995c8a4766c7771c0a

View file

@ -805,7 +805,7 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Thread {
void openFileFromDSP(bool /* isDir */, const char* const title, const char* /* filter */)
{
DISTRHO_SAFE_ASSERT_RETURN(idleCallbackActive,);
DISTRHO_SAFE_ASSERT_RETURN(fPluginType == PLUGIN_INTERNAL,);
DISTRHO_SAFE_ASSERT_RETURN(fPluginType == PLUGIN_INTERNAL || fPluginType == PLUGIN_LV2,);
CardinalPluginContext* const pcontext = module->pcontext;
@ -1025,7 +1025,7 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Thread {
if (fileBrowserHandle != nullptr && fileBrowserIdle(fileBrowserHandle))
{
if (const char* const path = fileBrowserGetPath(fileBrowserHandle))
carla_set_custom_data(handle, 0, CUSTOM_DATA_TYPE_STRING, "file", path);
carla_set_custom_data(handle, 0, CUSTOM_DATA_TYPE_PATH, "file", path);
fileBrowserClose(fileBrowserHandle);
fileBrowserHandle = nullptr;