Add a TODO about mutual recursion

This commit is contained in:
Robbert van der Helm
2022-10-03 03:36:56 +02:00
parent a44b071264
commit 06dfd66d93
+3
View File
@@ -458,6 +458,9 @@ void ClapBridge::run() {
-> clap::ext::gui::plugin::CanResize::Response {
const auto& [instance, _] = get_instance(request.instance_id);
// TODO: Qtractor calls this in response to request_resize(), so
// we need to handle mutual recursion here. We should do
// this for all GUI functions just to be safe.
return main_context_
.run_in_context([&, plugin = instance.plugin.get(),
gui = instance.extensions.gui]() {