diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-09 13:02:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-09 13:02:39 -0700 |
commit | 2025bc1b2bd2e52f27edb67a418e1519d3d664d8 (patch) | |
tree | 68c3991f21abdbdc9801c434b8d841c217d65d43 /git-access.h | |
parent | 2c74a8c315441b95da98e3f4b35db1b9eefb76ff (diff) | |
download | subsurface-2025bc1b2bd2e52f27edb67a418e1519d3d664d8.tar.gz |
Replace the spinner with a progress dialog for cloud storage access
Since the spinner caused all kinds of problems inside VMs, wasn't shown at
all for some people on Win10 and appeared to get stuck a lot and still
left people with the perception that Subsurface was hung, this patch takes
a more traditional approach and gives the user a progress dialog.
An additional benefit of this is that the user now can cancel a hung
transfer.
The slightly weird passing in of the callback allows for the separation of
UI and core logic code...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'git-access.h')
-rw-r--r-- | git-access.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-access.h b/git-access.h index 981c19fd1..beb764e7e 100644 --- a/git-access.h +++ b/git-access.h @@ -22,6 +22,7 @@ extern int do_git_save(git_repository *repo, const char *branch, const char *rem extern const char *saved_git_id; extern void clear_git_id(void); extern void set_git_id(const struct git_oid *); +void set_git_update_cb(int(*cb)(int)); #ifdef __cplusplus } |