| 1070 | } |
| 1071 | |
| 1072 | void MainScreen::startTransferReceive(void) |
| 1073 | { |
| 1074 | // Receiver lifetime == overlay lifetime: start it here, the overlay stops it |
| 1075 | // on close. |
| 1076 | std::string error; |
| 1077 | if (!Transfer::startReceiver(error)) { |
| 1078 | currentOverlay = std::make_shared<ErrorOverlay>(*this, -1, error.empty() ? i18n::t("main.receiver_failed") : error); |
| 1079 | } |
| 1080 | else { |
| 1081 | currentOverlay = std::make_shared<ReceiveOverlay>(*this); |
| 1082 | } |
| 1083 | } |
| 1084 | |
| 1085 | void MainScreen::startTransferSend(void) |
| 1086 | { |
nothing calls this directly
no test coverage detected