Don't spam icon downloads

This commit is contained in:
Henrik Rydgård authored and Henrik Rydgard committed 2015-07-04 10:36:59 +02:00
1 parent 53882c4a33
commit 26e07c0fdb
1 file changed
+1 -2
+1 -2
View File
@@ -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()) {