| 68 | } |
| 69 | |
| 70 | std::string UndoMenuItem::getDynamicTooltip() const |
| 71 | { |
| 72 | std::string res; |
| 73 | if ( const auto& history = Viewer::instanceRef().getGlobalHistoryStore() ) |
| 74 | { |
| 75 | if ( auto action = history->getLastAction( HistoryAction::Type::Undo ) ) |
| 76 | { |
| 77 | if ( auto dynName = getDynamicName( action ) ) |
| 78 | res = trimHashHashSuffix( *dynName ); |
| 79 | else |
| 80 | res = Locale::translate( trimHashHashSuffix( action->name() ), Locale::genericDomain ); |
| 81 | } |
| 82 | } |
| 83 | return res; |
| 84 | } |
| 85 | |
| 86 | void UndoMenuItem::updateUndoListCache_( const HistoryStore& store, HistoryStore::ChangeType type, std::shared_ptr<HistoryAction> ) |
| 87 | { |
no test coverage detected