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

Method onDeletePressed

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

Source from the content-addressed store, hash-verified

387}
388
389void View::onDeletePressed() {
390 std::string file_path = state->getSelectedChildPath();
391 LOGGER.info("Pending delete {}", file_path);
392 state->setPendingAction(State::ActionDelete);
393 std::string message = "Do you want to delete this?\n" + file_path;
394 const std::vector<std::string> choices = {"Yes", "No"};
395 alertdialog::start("Are you sure?", message, choices);
396}
397
398void View::onNewFilePressed() {
399 LOGGER.info("Creating new file");

Callers 1

onDeletePressedCallbackFunction · 0.80

Calls 4

infoMethod · 0.80
setPendingActionMethod · 0.80
startFunction · 0.70
getSelectedChildPathMethod · 0.45

Tested by

no test coverage detected