mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Cloud storage: verbose output to console
If Subsurface is started with the verbose flag, also give progress information on the consol (just in case there are issues with the progress dialog). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
06d6ca94f3
commit
54ec332c2f
1 changed files with 5 additions and 0 deletions
|
@ -56,9 +56,14 @@ void set_git_update_cb(int(*cb)(int))
|
|||
|
||||
static int update_progress(int percent)
|
||||
{
|
||||
static int last_percent = -10;
|
||||
int ret = 0;
|
||||
if (update_progress_cb)
|
||||
ret = (*update_progress_cb)(percent);
|
||||
if (verbose && percent - 10 >= last_percent) {
|
||||
last_percent = percent;
|
||||
fprintf(stderr, "git progress %d%%\n", percent);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue