| 659 | } |
| 660 | |
| 661 | void MainScreen::requestRestore(size_t cellIndex) |
| 662 | { |
| 663 | auto run = [this, cellIndex]() { |
| 664 | this->doRestore(hid.fullIndex(), cellIndex); |
| 665 | TransferJob::get().start(); |
| 666 | }; |
| 667 | if (Configuration::getInstance().confirmRestore()) { |
| 668 | currentOverlay = std::make_shared<YesNoOverlay>(*this, i18n::t("main.confirm_restore"), run, [this]() { this->removeOverlay(); }); |
| 669 | } |
| 670 | else { |
| 671 | run(); |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | void MainScreen::startScriptPicker(void) |
| 676 | { |
nothing calls this directly
no test coverage detected