| 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 | { |
nothing calls this directly
no test coverage detected