| 1364 | } |
| 1365 | |
| 1366 | void widgetDestroyed() |
| 1367 | { |
| 1368 | if (module == nullptr) |
| 1369 | return; |
| 1370 | |
| 1371 | if (const CarlaHostHandle handle = module->fCarlaHostHandle) |
| 1372 | { |
| 1373 | const CardinalPluginContext* const pcontext = module->pcontext; |
| 1374 | |
| 1375 | module->fCarlaHostDescriptor.uiParentId = 0; |
| 1376 | carla_set_engine_option(handle, ENGINE_OPTION_FRONTEND_WIN_ID, 0, "0"); |
| 1377 | |
| 1378 | if (idleCallbackActive) |
| 1379 | { |
| 1380 | idleCallbackActive = false; |
| 1381 | pcontext->removeIdleCallback(this); |
| 1382 | } |
| 1383 | } |
| 1384 | } |
| 1385 | |
| 1386 | void idleCallback() override |
| 1387 | { |
nothing calls this directly
no test coverage detected