| 58 | } |
| 59 | |
| 60 | std::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 | |
| 70 | std::string UndoMenuItem::getDynamicTooltip() const |
| 71 | { |
no test coverage detected