summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 21:20:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 21:20:33 -0700
commitafb5bb8b06b079ffbccc970554733e63ee77b5b5 (patch)
tree6f03468c49a2a71910724d770472fa43a667e49e
parent1634c62b9a156b59faab4ed89d64c359ba0580f2 (diff)
downloadsubsurface-afb5bb8b06b079ffbccc970554733e63ee77b5b5.tar.gz
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>
-rw-r--r--mobile-widgets/qmlmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 371e67498..fa8a782c6 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -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