mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Disable progress bar for download operations when prompts are disabled
This commit is contained in:
@ -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>`_)
|
||||
|
@ -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")
|
||||
|
Reference in New Issue
Block a user