MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / widgetDestroyed

Method widgetDestroyed

plugins/Cardinal/src/Ildaeil.cpp:1366–1384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

removeIdleCallbackMethod · 0.45

Tested by

no test coverage detected