Update customer repository instead of Check...

This commit is contained in:
Gerhard Hoffmann 2025-02-21 12:38:28 +01:00
parent 96e3b606ef
commit 037b91b889

View File

@ -200,14 +200,17 @@ void MainWindow::onShowCustRepoStatus(QString status) {
QString s = ui->stepLabel->text(); QString s = ui->stepLabel->text();
s.chop(m_stepLabelChopCount); s.chop(m_stepLabelChopCount);
QString tmp("Check customer repository "); QString tmp("Update customer repository ");
int len = m_showLineLength - tmp.length(); int len = m_showLineLength - tmp.length();
while (--len > 0) { while (--len > 0) {
tmp += " "; tmp += " ";
} }
if (status.contains(UpdateCommand::GIT_CUSTOMER_REPO_UP_TO_DATE, Qt::CaseInsensitive)) { if (status.contains(internal::GIT_CUSTOMER_REPO_UP_TO_DATE, Qt::CaseInsensitive)) {
s += QString("%1 <font color='Green'>up to date</font><br />").arg(tmp); s += QString("%1 <font color='Green'>%2</font><br />").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 <font color='Green'>%2</font><br />").arg(tmp).arg(internal::GIT_CUSTOMER_REPO_NOT_NECESSARY);
} else { } else {
s += QString( "%1 <font color='Red'>UNKNOWN STATUS</font><br />").arg(tmp); s += QString( "%1 <font color='Red'>UNKNOWN STATUS</font><br />").arg(tmp);
} }
@ -399,7 +402,7 @@ void MainWindow::onShowUpdateRequest(QString status) {
} }
m_stepLabelChopCount = -s.length(); m_stepLabelChopCount = -s.length();
s += "Check customer repository"; s += "Update customer repository";
m_stepLabelChopCount += s.length(); m_stepLabelChopCount += s.length();
ui->stepLabel->setText(s); ui->stepLabel->setText(s);