Don't spam icon downloads

This commit is contained in:
Henrik Rydgård 2015-07-02 17:59:47 +02:00 committed by Henrik Rydgard
parent 53882c4a33
commit 26e07c0fdb

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()) {