Skip X11 LV2UI check on Windows and MacOS

This commit is contained in:
Robin Gareus 2019-10-28 16:14:30 +01:00
parent 86337810fe
commit 1477bca76e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -851,6 +851,7 @@ LV2Plugin::init(const void* c_plugin, samplecnt_t rate)
#ifdef HAVE_SUIL
const LilvUI* this_ui = NULL;
const LilvNode* this_ui_type = NULL;
#if ! (defined(__APPLE__) || defined(PLATFORM_WINDOWS))
// Always prefer X11 UIs...
LILV_FOREACH(uis, i, uis) {
const LilvUI* ui = lilv_uis_get(uis, i);
@ -860,6 +861,7 @@ LV2Plugin::init(const void* c_plugin, samplecnt_t rate)
break;
}
}
#endif
// then anything else...
if (this_ui_type == NULL) {
LILV_FOREACH(uis, i, uis) {