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

Method onContextDestroy

plugins/Cardinal/src/MPV.cpp:126–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 void onContextDestroy(const ContextDestroyEvent& e) override
127 {
128 ModuleWidget::onContextDestroy(e);
129
130 if (module == nullptr)
131 return;
132
133 DISTRHO_SAFE_ASSERT_RETURN(module != nullptr,);
134 DISTRHO_SAFE_ASSERT_RETURN(pcontext != nullptr,);
135 DISTRHO_SAFE_ASSERT_RETURN(isEmbed,);
136
137 isEmbed = false;
138 embedWidget->hide();
139 embedWidget->removeFromRack();
140 terminateAndWaitForExternalProcess();
141 }
142
143 void appendContextMenu(ui::Menu* const menu) override
144 {

Callers

nothing calls this directly

Calls 2

hideMethod · 0.45
removeFromRackMethod · 0.45

Tested by

no test coverage detected