Show simple progress bars at the top of the screen during downloads.

Should do something more practical eventually.
This commit is contained in:
Henrik Rydgård committed 2013-12-05 12:48:09 +01:00
1 parent 29bbb826a1
commit eaed2e516b
5 files changed
+46 -26

No files matched your search

+3 -3
View File
@@ -112,18 +112,18 @@ StoreScreen::StoreScreen() : loading_(true), connectionError_(false) {
std::string indexPath = storeBaseUrl + "index.json";
listing_ = downloader_.StartDownload(indexPath, "");
listing_ = g_DownloadManager.StartDownload(indexPath, "");
}
StoreScreen::~StoreScreen() {
downloader_.CancelAll();
g_DownloadManager.CancelAll();
}
// Handle async download tasks
void StoreScreen::update(InputState &input) {
UIDialogScreenWithBackground::update(input);
downloader_.Update();
g_DownloadManager.Update();
if (listing_.get() != 0 && listing_->Done()) {
if (listing_->ResultCode() == 200) {