From 037b91b889a7328c09648a6a0eb511eb907867e7 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 21 Feb 2025 12:38:28 +0100 Subject: [PATCH] Update customer repository instead of Check... --- UpdatePTUDevCtrl/mainwindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/UpdatePTUDevCtrl/mainwindow.cpp b/UpdatePTUDevCtrl/mainwindow.cpp index e7cae63..9c1a4dc 100644 --- a/UpdatePTUDevCtrl/mainwindow.cpp +++ b/UpdatePTUDevCtrl/mainwindow.cpp @@ -200,14 +200,17 @@ void MainWindow::onShowCustRepoStatus(QString status) { QString s = ui->stepLabel->text(); s.chop(m_stepLabelChopCount); - QString tmp("Check customer repository "); + QString tmp("Update customer repository "); int len = m_showLineLength - tmp.length(); while (--len > 0) { tmp += " "; } - if (status.contains(UpdateCommand::GIT_CUSTOMER_REPO_UP_TO_DATE, Qt::CaseInsensitive)) { - s += QString("%1 up to date
").arg(tmp); + if (status.contains(internal::GIT_CUSTOMER_REPO_UP_TO_DATE, Qt::CaseInsensitive)) { + s += QString("%1 %2
").arg(tmp).arg(internal::GIT_CUSTOMER_REPO_UP_TO_DATE); + } else + if (status.contains(internal::GIT_CUSTOMER_REPO_NOT_NECESSARY, Qt::CaseInsensitive)) { + s += QString("%1 %2
").arg(tmp).arg(internal::GIT_CUSTOMER_REPO_NOT_NECESSARY); } else { s += QString( "%1 UNKNOWN STATUS
").arg(tmp); } @@ -399,7 +402,7 @@ void MainWindow::onShowUpdateRequest(QString status) { } m_stepLabelChopCount = -s.length(); - s += "Check customer repository"; + s += "Update customer repository"; m_stepLabelChopCount += s.length(); ui->stepLabel->setText(s);