From 26e07c0fdb856217a214da82d7c03eee41b8db65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 2 Jul 2015 17:59:47 +0200 Subject: [PATCH] Don't spam icon downloads --- UI/Store.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UI/Store.cpp b/UI/Store.cpp index e827fd1c12..e7825b3dfe 100644 --- a/UI/Store.cpp +++ b/UI/Store.cpp @@ -121,8 +121,6 @@ void HttpImageFileView::DownloadCompletedCallback(http::Download &download) { } else { textureFailed_ = true; } - - download_.reset(); } void HttpImageFileView::Draw(UIContext &dc) { @@ -136,6 +134,7 @@ void HttpImageFileView::Draw(UIContext &dc) { if (!texture_) textureFailed_ = true; textureData_.clear(); + download_.reset(); } if (HasFocus()) {