| 1242 | } |
| 1243 | |
| 1244 | void 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 | |
| 1256 | void BrowserWindow::onReplaceResource(BrowserLeaf const& leaf) |
| 1257 | { |
nothing calls this directly
no test coverage detected