| 377 | } |
| 378 | |
| 379 | void hide_all_contexts() { |
| 380 | for (auto& context : shown_contexts) { |
| 381 | context.document->Hide(); |
| 382 | } |
| 383 | |
| 384 | shown_contexts.clear(); |
| 385 | } |
| 386 | |
| 387 | bool is_context_shown(recompui::ContextId context) { |
| 388 | return std::find_if(shown_contexts.begin(), shown_contexts.end(), [context](auto& c){ return c.context == context; }) != shown_contexts.end(); |