From d2d3afc28e032e3a7f0facfc5a9ce64cd641d4f6 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 29 Nov 2023 12:05:09 +0100 Subject: [PATCH] Show debug output in text-edit only when at least one file to update. --- worker.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker.h b/worker.h index a1cf193..394b944 100644 --- a/worker.h +++ b/worker.h @@ -1175,7 +1175,8 @@ private: for (int i = 0; i < size; ++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(QString("\n ") + worker->m_filesToUpdate.at(0)); }