Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/AppInstallerCLICore/ExecutionReporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ namespace AppInstaller::CLI::Execution
Reporter::Reporter(const Reporter& other, clone_t) :
Reporter(other.m_out, other.m_in)
{
if (other.m_style.has_value())
{
SetStyle(*other.m_style);
}
}

OutputStream Reporter::GetOutputStream(Level level)
Expand Down Expand Up @@ -78,6 +82,7 @@ namespace AppInstaller::CLI::Execution

void Reporter::SetStyle(VisualStyle style)
{
m_style = style;
if (m_spinner)
{
m_spinner->SetStyle(style);
Expand Down
1 change: 1 addition & 0 deletions src/AppInstallerCLICore/ExecutionReporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ namespace AppInstaller::CLI::Execution
std::ostream& m_out;
std::istream& m_in;
bool m_isVTEnabled = true;
std::optional<AppInstaller::Settings::VisualStyle> m_style;
std::optional<IndefiniteSpinner> m_spinner;
std::optional<ProgressBar> m_progressBar;
wil::srwlock m_progressCallbackLock;
Expand Down