MCPcopy Create free account
hub / github.com/chrxh/alien / onDownloadResource

Method onDownloadResource

source/Gui/BrowserWindow.cpp:1244–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1242}
1243
1244void BrowserWindow::onDownloadResource(BrowserLeaf const& leaf)
1245{
1246 ++leaf.rawTO->numDownloads;
1247
1248 NetworkTransferController::get().onDownload(DownloadNetworkResourceRequestData{
1249 .resourceId = leaf.rawTO->id,
1250 .resourceName = leaf.rawTO->resourceName,
1251 .resourceVersion = leaf.rawTO->version,
1252 .resourceType = _currentWorkspace.resourceType,
1253 .downloadCache = _downloadCache});
1254}
1255
1256void BrowserWindow::onReplaceResource(BrowserLeaf const& leaf)
1257{

Callers

nothing calls this directly

Calls 1

onDownloadMethod · 0.80

Tested by

no test coverage detected