Show debug output in text-edit only when at least one file to update.

This commit is contained in:
Gerhard Hoffmann 2023-11-29 12:05:09 +01:00
parent f4bb201633
commit d2d3afc28e

View File

@ -1175,7 +1175,8 @@ private:
for (int i = 0; i < size; ++i) { for (int i = 0; i < size; ++i) {
emit worker->appendText(QString("\n ") + worker->m_filesToUpdate.at(i)); emit worker->appendText(QString("\n ") + worker->m_filesToUpdate.at(i));
} }
} else { }
if (size == 1) {
emit worker->appendText("Found 1 file to update :", UPDATE_STEP_DONE); emit worker->appendText("Found 1 file to update :", UPDATE_STEP_DONE);
emit worker->appendText(QString("\n ") + worker->m_filesToUpdate.at(0)); emit worker->appendText(QString("\n ") + worker->m_filesToUpdate.at(0));
} }