Skip to content

Commit

Permalink
Fix the progress bar in the UI; now the line-rewriting more or less
Browse files Browse the repository at this point in the history
works! #523
  • Loading branch information
dabreegster committed Mar 17, 2021
1 parent c1d110d commit 2e7d6ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions abstio/src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use abstutil::prettyprint_usize;
/// tokio runtime somewhere.
pub async fn download_bytes<I: AsRef<str>>(url: I, quiet: bool) -> Result<Vec<u8>> {
let url = url.as_ref();
info!("Downloading {}", url);
let mut resp = reqwest::get(url).await.unwrap();
resp.error_for_status_ref()
.with_context(|| format!("downloading {}", url))?;
Expand Down
2 changes: 1 addition & 1 deletion map_gui/src/tools/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<A: AppLike + 'static> RunCommand<A> {
}
// Handle the "clear the current line" escape code
if line.contains("\r") {
self.lines.pop_front();
self.lines.pop_back();
self.lines
.push_back(line.split('\r').last().unwrap().to_string());
} else {
Expand Down

0 comments on commit 2e7d6ee

Please sign in to comment.