mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
QML UI: simplify git tracking output
And don't waste quite as much time on updating the UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1634c62b9a
commit
afb5bb8b06
1 changed files with 3 additions and 3 deletions
|
@ -54,11 +54,11 @@ extern "C" int gitProgressCB(int percent, const char *text)
|
|||
return 0;
|
||||
self->loadDiveProgress(percent);
|
||||
QString logText = QString::number(elapsed / 1000.0, 'f', 1) + " / " + QString::number((elapsed - lastTime) / 1000.0, 'f', 3) +
|
||||
QString(" : git progress %1 (%2)").arg(percent).arg(text);
|
||||
QString(" : git %1 (%2)").arg(percent).arg(text);
|
||||
self->appendTextToLog(logText);
|
||||
qDebug() << logText;
|
||||
qApp->processEvents();
|
||||
qApp->flush();
|
||||
if (elapsed - lastTime > 500)
|
||||
qApp->processEvents();
|
||||
lastTime = elapsed;
|
||||
}
|
||||
// return 0 so that we don't end the download
|
||||
|
|
Loading…
Reference in a new issue