mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix: hide progress bars when showing permission prompt (#17130)
Also adds download bytes progress when downloading remote specifiers. Closes #16860
This commit is contained in:
parent
5a8adc342b
commit
2ff27a1f93
6 changed files with 120 additions and 86 deletions
|
@ -23,6 +23,7 @@ mod renderer;
|
|||
// Inspired by Indicatif, but this custom implementation allows
|
||||
// for more control over what's going on under the hood.
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct UpdateGuard {
|
||||
maybe_entry: Option<ProgressBarEntry>,
|
||||
}
|
||||
|
@ -183,7 +184,7 @@ impl ProgressBarInner {
|
|||
{
|
||||
internal_state.start_time = SystemTime::now();
|
||||
internal_state.draw_thread_guard =
|
||||
Some(DrawThread::add_entry(0, Arc::new(self.clone())));
|
||||
Some(DrawThread::add_entry(Arc::new(self.clone())));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue