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

Method begin

switch/source/progress.cpp:36–41  ·  view source on GitHub ↗

UiProgressSink runs on the TransferJob worker thread: every call only mirrors figures into TransferStatus. It does not render — the main loop draws the transfer modal from TransferStatus::snapshot() every frame, so the UI keeps animating while the copy runs on the worker. The batch active flag is owned by TransferStatus::beginLocalBatch / end, raised and lowered by the TransferJob around the whole

Source from the content-addressed store, hash-verified

34// TransferStatus::beginLocalBatch / end, raised and lowered by the TransferJob
35// around the whole batch.
36void UiProgressSink::begin(const std::string& mode, size_t totalFiles)
37{
38 // A backup sink carries a cancel flag; a restore sink does not. That is
39 // exactly the "may this run be cancelled?" fact the modal needs.
40 TransferStatus::beginLocalRun(mode, totalFiles, mCancelFlag != nullptr);
41}
42
43void UiProgressSink::startFile(const std::string& name, u64 size)
44{

Callers 15

frameBeginFunction · 0.45
DestroyTextureMethod · 0.45
splitBackupNameFunction · 0.45
sortTitlesMethod · 0.45
titleListForSaveTypeMethod · 0.45
backupMethod · 0.45
restoreMethod · 0.45
rebuildRowsMethod · 0.45
refreshDirectoriesMethod · 0.45
readFoldersMethod · 0.45
drawMethod · 0.45
parseMethod · 0.45

Calls 1

beginLocalRunFunction · 0.70

Tested by

no test coverage detected