summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-17 13:07:13 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-19 12:42:47 -0800
commitfa8ac5ceeb7cbd25f87467973f4e8bf74d3a6531 (patch)
treeb7865efd1b328877dfe6e4f573d07fa6dae39463
parentbd951a51cc99fa2243c63ba9c27260c01d9a3877 (diff)
downloadsubsurface-fa8ac5ceeb7cbd25f87467973f4e8bf74d3a6531.tar.gz
mobile/UI: normally don't show git progress info to user
This isn't really useful for normal users and with the new 'multiple notifications stay visible' feature in Kirigami it creates a really weird and distracting user experience. We should show the user a summart of what we did instead. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qmlmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 02c254257..790be68a9 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -128,7 +128,12 @@ static void showProgress(QString msg)
// show the git progress in the passive notification area
extern "C" int gitProgressCB(const char *text)
{
- showProgress(QString(text));
+ // regular users, during regular operation, likely really don't
+ // care at all about the git progress
+ if (verbose) {
+ showProgress(QString(text));
+ appendTextToLogStandalone(text);
+ }
// return 0 so that we don't end the download
return 0;
}