forked from qt-creator/qt-creator
VcsBase: Get rid of RunFlags::SilentOutput
In theory in was used only when we passed a non-null editor together with CommandOutputBindMode::ToVcsWindow into VcsBaseClientImpl::createCommand(). But there was no such a case in the whole codebase. Change-Id: I4b1162141e0849b49c12ee464e635debb62d5353 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -142,12 +142,8 @@ void VcsCommandPrivate::installStdCallbacks(QtcProcess *process)
|
||||
|| m_flags & RunFlags::ShowStdOut) {
|
||||
process->setTextChannelMode(Channel::Output, TextChannelMode::MultiLine);
|
||||
connect(process, &QtcProcess::textOnStandardOutput, this, [this](const QString &text) {
|
||||
if (m_flags & RunFlags::ShowStdOut) {
|
||||
if (m_flags & RunFlags::SilentOutput)
|
||||
VcsOutputWindow::appendSilently(text);
|
||||
else
|
||||
VcsOutputWindow::append(text);
|
||||
}
|
||||
if (m_flags & RunFlags::ShowStdOut)
|
||||
VcsOutputWindow::append(text);
|
||||
if (m_flags & RunFlags::ProgressiveOutput)
|
||||
emit q->stdOutText(text);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user