From d57914957d5f5280a33271f5a324b15bd9b9e0cd Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 4 Aug 2023 13:50:19 +0200 Subject: [PATCH] Add text-edit entry if git pull is successful. --- worker.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/worker.cpp b/worker.cpp index 0e70561..180fb53 100644 --- a/worker.cpp +++ b/worker.cpp @@ -465,10 +465,11 @@ bool Worker::filesToUpdate() { } else { emit appendText(QString("\nFound 1 file to update "), UPDATE_STEP_DONE); } - if (!m_gc.gitPull()) { - emit showErrorMessage("files to update", "pulling files failed"); + if (m_gc.gitPull()) { + emit appendText(QString("\nFetch changes files "), UPDATE_STEP_DONE); + return true; } - return true; + emit showErrorMessage("files to update", "pulling files failed"); } else { emit showErrorMessage("files to update", "no files to update (checked-in any files?)"); }