diff --git a/src/experimental/studio/app.cc b/src/experimental/studio/app.cc index ae854020..e886e911 100644 --- a/src/experimental/studio/app.cc +++ b/src/experimental/studio/app.cc @@ -1167,8 +1167,9 @@ void App::BuildGui() { ImGui::EndMainMenuBar(); } if (plugin->active) { - ImGui::Begin(plugin->name); - plugin->update(plugin); + if (ImGui::Begin(plugin->name, &plugin->active)) { + plugin->update(plugin); + } ImGui::End(); } });