| 387 | } |
| 388 | |
| 389 | void 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 | |
| 398 | void View::onNewFilePressed() { |
| 399 | LOGGER.info("Creating new file"); |
no test coverage detected