MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onNavigateUpPressed

Method onNavigateUpPressed

Tactility/Source/app/files/View.cpp:370–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void 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
382void View::onRenamePressed() {
383 std::string entry_name = state->getSelectedChildEntry();

Callers 1

Calls 4

getPathParentFunction · 0.85
infoMethod · 0.80
getCurrentPathMethod · 0.45
setEntriesForPathMethod · 0.45

Tested by

no test coverage detected