MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / queueUiVisibilityToggle

Method queueUiVisibilityToggle

src/visualizer/gui/gui_manager.cpp:4977–4996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4975 }
4976
4977 void GuiManager::queueUiVisibilityToggle() {
4978 if (!viewer_) {
4979 return;
4980 }
4981
4982 if (viewer_->isOnViewerThread()) {
4983 requestUiVisibilityToggle();
4984 return;
4985 }
4986
4987 const bool posted = viewer_->postWork(VisualizerImpl::WorkItem{
4988 .run = [this] {
4989 requestUiVisibilityToggle();
4990 },
4991 .cancel = {},
4992 });
4993 if (!posted) {
4994 LOG_DEBUG("Dropping UI visibility transition request because the viewer is shutting down");
4995 }
4996 }
4997
4998 void GuiManager::requestUiVisibilityToggle() {
4999 auto* const wm = viewer_ ? viewer_->getWindowManager() : nullptr;

Callers

nothing calls this directly

Calls 2

isOnViewerThreadMethod · 0.45
postWorkMethod · 0.45

Tested by

no test coverage detected