MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / composeStatus

Function composeStatus

source/MRViewer/MRUITestEngineControl.cpp:75–80  ·  view source on GitHub ↗

Compose the single user-facing status string from the entry's `disabledReason`. The reason covers every disable source — caller-supplied requirements, ImGui::BeginDisabled auto-detect, and "blocked by modal ' '" (all formatted at registration time in `MRUITestEngine.cpp:effectiveDisabledReason`).

Source from the content-addressed store, hash-verified

73// auto-detect, and "blocked by modal '<name>'" (all formatted at registration time in
74// `MRUITestEngine.cpp:effectiveDisabledReason`).
75static std::string composeStatus( std::string_view disabledReason )
76{
77 if ( !disabledReason.empty() )
78 return fmt::format( "disabled: {}", disabledReason );
79 return "available";
80}
81
82static EntryType typeOf( const TestEngine::Entry& entry )
83{

Callers 4

listEntriesFunction · 0.85
walkAllFunction · 0.85
pressButtonFunction · 0.85
writeValueFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected