Minor: fixed output format (in text edit)

This commit is contained in:
Gerhard Hoffmann 2023-10-06 13:00:00 +02:00
parent 89d1ec5b21
commit 145fdab26e

View File

@ -820,13 +820,13 @@ bool Worker::updateFiles(quint8 percent) {
f.close();
if (cmdCount > 0) {
m_displayIndex = 1;
QString prepend = QString("(") + QString("%1").arg(m_displayIndex).rightJustified(2, ' ') + QString(")")
QString prepend = QString("(") + QString("%1").arg(m_displayIndex).rightJustified(3, ' ') + QString(")")
+ QString(" Update opkg pakets ... ");
opkgCommands.prepend(prepend);
emit replaceLast(opkgCommands, UPDATE_STEP_DONE);
} else {
m_displayIndex = 1;
emit replaceLast(QString("(") + QString("%1").arg(m_displayIndex).rightJustified(2, ' ') + QString(")")
emit replaceLast(QString("(") + QString("%1").arg(m_displayIndex).rightJustified(3, ' ') + QString(")")
+ QString(" Update opkg pakets ... "), UPDATE_STEP_FAIL);
}
}
@ -898,6 +898,7 @@ bool Worker::syncCustomerRepositoryAndFS() {
if (!error) {
Command c("bash");
qInfo() << "EXECUTING CMD..." << cmd;
Utils::printInfoMsg(QString("EXECUTING CMD %1...").arg(cmd));
if (c.execute(m_customerRepository, QStringList() << "-c" << cmd)) {
QStringList result = c.getCommandResult().split('\n');
QString const &p1 = "send_files mapped ";