Disable progress bar for download operations when prompts are disabled

This commit is contained in:
Ivan Kravets
2016-03-21 14:17:04 +02:00
parent b34b00eed2
commit 4256d6b6a3
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ PlatformIO 2.0
* Launched `PlatformIO Community Forums <http://community.platformio.org>`_
(`issue #530 <https://github.com/platformio/platformio/issues/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 <https://github.com/platformio/platformio/issues/571>`_)

View File

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