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")