Fix headless builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
74df0a8d4f
commit
f262e6661c
1 changed files with 2 additions and 0 deletions
|
@ -50,8 +50,10 @@ struct TextEditorModule : Module {
|
|||
json_t* const rootJ = json_object();
|
||||
DISTRHO_SAFE_ASSERT_RETURN(rootJ != nullptr, nullptr);
|
||||
|
||||
#ifndef HEADLESS
|
||||
if (ImGuiTextEditor* const widget = widgetPtr)
|
||||
text = widget->getText();
|
||||
#endif
|
||||
|
||||
json_object_set_new(rootJ, "filepath", json_string(file.c_str()));
|
||||
json_object_set_new(rootJ, "lang", json_string(lang.c_str()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue