| 915 | } |
| 916 | |
| 917 | void MainScreen::startTransferReceive(void) |
| 918 | { |
| 919 | // Receiver lifetime == overlay lifetime (B in the overlay stops it), so no |
| 920 | // background-receiver state is introduced here. |
| 921 | std::string error; |
| 922 | if (!Transfer::startReceiver(error)) { |
| 923 | currentOverlay = std::make_shared<ErrorOverlay>(*this, -1, error.empty() ? i18n::t("main.receiver_failed") : error); |
| 924 | } |
| 925 | else { |
| 926 | currentOverlay = std::make_shared<ReceiveOverlay>(*this); |
| 927 | } |
| 928 | } |
| 929 | |
| 930 | void MainScreen::startTransferSend(void) |
| 931 | { |
nothing calls this directly
no test coverage detected