MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / startTransferReceive

Method startTransferReceive

switch/source/MainScreen.cpp:1072–1083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070}
1071
1072void 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
1085void MainScreen::startTransferSend(void)
1086{

Callers

nothing calls this directly

Calls 2

startReceiverFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected