diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/client.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/client.rs b/src/lib/client.rs index 7c83e19..0427501 100644 --- a/src/lib/client.rs +++ b/src/lib/client.rs | |||
| @@ -417,7 +417,15 @@ impl Connect for Client { | |||
| 417 | if let Some(spinner) = spinner_for_timer { | 417 | if let Some(spinner) = spinner_for_timer { |
| 418 | spinner.finish_and_clear(); | 418 | spinner.finish_and_clear(); |
| 419 | } | 419 | } |
| 420 | eprintln!("fetching updates..."); | 420 | // Add heading as a finished progress bar so it gets cleared |
| 421 | // along with the other bars by progress_reporter.clear() | ||
| 422 | let heading = detail_multi_for_timer.insert( | ||
| 423 | 0, | ||
| 424 | ProgressBar::new(0).with_style( | ||
| 425 | ProgressStyle::with_template("{msg}").unwrap(), | ||
| 426 | ), | ||
| 427 | ); | ||
| 428 | heading.finish_with_message("fetching updates..."); | ||
| 421 | detail_multi_for_timer | 429 | detail_multi_for_timer |
| 422 | .set_draw_target(ProgressDrawTarget::stderr()); | 430 | .set_draw_target(ProgressDrawTarget::stderr()); |
| 423 | }); | 431 | }); |