| 366 | } |
| 367 | |
| 368 | void hide_context(recompui::ContextId context) { |
| 369 | auto remove_it = std::remove_if(shown_contexts.begin(), shown_contexts.end(), [context](auto& c) { return c.context == context; }); |
| 370 | if (remove_it == shown_contexts.end()) { |
| 371 | recompui::message_box("Attemped to hide a context that isn't shown"); |
| 372 | assert(false); |
| 373 | } |
| 374 | shown_contexts.erase(remove_it, shown_contexts.end()); |
| 375 | |
| 376 | context.get_document()->Hide(); |
| 377 | } |
| 378 | |
| 379 | void hide_all_contexts() { |
| 380 | for (auto& context : shown_contexts) { |
nothing calls this directly
no test coverage detected