http: Use Path for the download file.

This commit is contained in:
Unknown W. Brackets committed 2021-05-14 22:46:03 -07:00
1 parent ed2ade4e22
commit 2a9170a2ea
9 files changed
+29 -24

No files matched your search

+2 -2
View File
@@ -134,7 +134,7 @@ void HttpImageFileView::DownloadCompletedCallback(http::Download &download) {
void HttpImageFileView::Draw(UIContext &dc) {
using namespace Draw;
if (!texture_ && !textureFailed_ && !path_.empty() && !download_) {
download_ = downloader_->StartDownloadWithCallback(path_, "", std::bind(&HttpImageFileView::DownloadCompletedCallback, this, std::placeholders::_1));
download_ = downloader_->StartDownloadWithCallback(path_, Path(), std::bind(&HttpImageFileView::DownloadCompletedCallback, this, std::placeholders::_1));
download_->SetHidden(true);
}
@@ -367,7 +367,7 @@ StoreScreen::StoreScreen() {
std::string indexPath = storeBaseUrl + "index.json";
listing_ = g_DownloadManager.StartDownload(indexPath, "");
listing_ = g_DownloadManager.StartDownload(indexPath, Path());
}
StoreScreen::~StoreScreen() {