MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / hide_context

Method hide_context

src/ui/ui_state.cpp:368–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

get_documentMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected