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

Method UpdateOverlay

switch/source/UpdateOverlay.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43UpdateOverlay::UpdateOverlay(Screen& screen, const AutoUpdater::Update& update, std::function<void()> onInstalled)
44 : Overlay(screen), mUpdate(update), mOnInstalled(std::move(onInstalled))
45{
46 mText = i18n::t("updater.downloading", {update.version});
47 mWorker = std::thread([this]() {
48 const AutoUpdater::Outcome outcome = AutoUpdater::install(mUpdate);
49 mOutcome = outcome;
50 mFinished.store(true, std::memory_order_release);
51 });
52}
53
54UpdateOverlay::~UpdateOverlay()
55{

Callers

nothing calls this directly

Calls 1

storeMethod · 0.80

Tested by

no test coverage detected