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

Method isAvailable

source/MRViewer/MRSceneControlMenuItems.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60std::string UndoMenuItem::isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const
61{
62 const auto& history = Viewer::instanceRef().getGlobalHistoryStore();
63 if ( !history )
64 return "Internal history stack is unavailable.";
65 if ( dropList_.empty() )
66 return "Nothing to undo.";
67 return "";
68}
69
70std::string UndoMenuItem::getDynamicTooltip() const
71{

Callers 7

updateSelectionMethod · 0.45
mcpToolStatusFunction · 0.45
mcpToolsActionFunction · 0.45
getRequirements_Method · 0.45
drawThemeSelector_Method · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected