From 4256d6b6a312d1d2775732d6555bc8ed59d5b9c8 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 21 Mar 2016 14:17:04 +0200 Subject: [PATCH] Disable progress bar for download operations when prompts are disabled --- HISTORY.rst | 1 + platformio/app.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 6137ded5..370d1090 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,6 +9,7 @@ PlatformIO 2.0 * Launched `PlatformIO Community Forums `_ (`issue #530 `_) +* Disable progress bar for download operations when prompts are disabled * Fixed multiple definition errors for ST STM32 development platform and mbed framework (`issue #571 `_) diff --git a/platformio/app.py b/platformio/app.py index 3a6ae6cb..cda86dc4 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -186,4 +186,5 @@ def set_session_var(name, value): def is_disabled_progressbar(): - return is_ci() or getenv("PLATFORMIO_DISABLE_PROGRESSBAR") == "true" + return (not get_setting("enable_prompts") or + getenv("PLATFORMIO_DISABLE_PROGRESSBAR") == "true")