| 368 | } |
| 369 | |
| 370 | void View::onNavigateUpPressed() { |
| 371 | if (state->getCurrentPath() != "/") { |
| 372 | LOGGER.info("Navigating upwards"); |
| 373 | std::string new_absolute_path; |
| 374 | if (string::getPathParent(state->getCurrentPath(), new_absolute_path)) { |
| 375 | state->setEntriesForPath(new_absolute_path); |
| 376 | } |
| 377 | onNavigate(); |
| 378 | update(); |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | void View::onRenamePressed() { |
| 383 | std::string entry_name = state->getSelectedChildEntry(); |
no test coverage detected