diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-19 14:31:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 14:31:19 -0500 |
commit | 2ff27a1f9327bf913d7b9d6aadc703a30a297e11 (patch) | |
tree | 2643c8b11279542c462c6c3d50da5f89d22e0d8f /cli/main.rs | |
parent | 5a8adc342bcf01f535079d06778a9f244ba7e96f (diff) |
fix: hide progress bars when showing permission prompt (#17130)
Also adds download bytes progress when downloading remote specifiers.
Closes #16860
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs index ecff408d7..462e9e0a4 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -260,6 +260,10 @@ pub fn main() { util::windows::ensure_stdio_open(); #[cfg(windows)] colors::enable_ansi(); // For Windows 10 + deno_runtime::permissions::set_prompt_callbacks( + Box::new(util::draw_thread::DrawThread::hide), + Box::new(util::draw_thread::DrawThread::show), + ); let args: Vec<String> = env::args().collect(); |