VcsCommand: Handle SilentOutput

Handle SilentOutput flag into accound when runSynchronous()
to make it consistent with fully synchronous case.

Change-Id: I955714872601f8fb7ffff8d570eec5ff610d9cfe
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-09-15 15:10:48 +02:00
parent 683d2fec2d
commit 2b3c05ba90

View File

@@ -197,8 +197,12 @@ void VcsCommandPrivate::installStdCallbacks(QtcProcess *process)
process->setStdOutCallback([this](const QString &text) { process->setStdOutCallback([this](const QString &text) {
if (m_progressParser) if (m_progressParser)
m_progressParser->parseProgress(text); m_progressParser->parseProgress(text);
if (m_flags & VcsCommand::ShowStdOut) if (m_flags & VcsCommand::ShowStdOut) {
emit q->append(text); if (m_flags & VcsCommand::SilentOutput)
emit q->appendSilently(text);
else
emit q->append(text);
}
if (m_progressiveOutput) if (m_progressiveOutput)
emit q->stdOutText(text); emit q->stdOutText(text);
}); });