commit 3801331f034585d048853c73682def6a4562fe0f parent d170d65e75ec91590d3ff9543811f6174af08ce1 Author: David Allsopp <david.allsopp@metastack.com> Date: Thu, 17 Dec 2020 23:04:28 +0000 Ensure progress widgets respect UseVT (#667) Diffstat:
| M | src/AppInstallerCLICore/ExecutionProgress.cpp | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/AppInstallerCLICore/ExecutionProgress.cpp b/src/AppInstallerCLICore/ExecutionProgress.cpp @@ -133,11 +133,13 @@ namespace AppInstaller::CLI::Execution { void ProgressVisualizerBase::ApplyStyle(size_t i, size_t max, bool enabled) { + if (!UseVT()) + { + // Either no style set or VT disabled + return; + } switch (m_style) { - case VisualStyle::NoVT: - // No VT means no style set - break; case VisualStyle::Retro: if (enabled) {