| 465 | |
| 466 | #if DISTRHO_PLUGIN_WANT_PROGRAMS |
| 467 | void UI::programLoaded(const uint32_t index) |
| 468 | { |
| 469 | #if DISTRHO_UI_USE_WEB_VIEW |
| 470 | if (uiData->webview != nullptr) |
| 471 | { |
| 472 | char msg[128]; |
| 473 | std::snprintf(msg, sizeof(msg) - 1, |
| 474 | "typeof(programLoaded) === 'function' && programLoaded(%u)", index); |
| 475 | webViewEvaluateJS(uiData->webview, msg); |
| 476 | } |
| 477 | #else |
| 478 | // unused |
| 479 | (void)index; |
| 480 | #endif |
| 481 | } |
| 482 | #endif |
| 483 | |
| 484 | #if DISTRHO_PLUGIN_WANT_STATE |
no test coverage detected