Spin cursor during tool execution

GitOrigin-RevId: 3e081374ffbad7e8b5359892733c4b0463fc6a43
This commit is contained in:
Dietrich Epp 2021-03-24 01:23:09 -04:00
parent d74cfbf9b1
commit 25055b63dc
1 changed files with 3 additions and 0 deletions

3
sync.c
View File

@ -1,5 +1,6 @@
#include "defs.h"
#include <CursorCtl.h>
#include <Files.h>
#include <Folders.h>
#include <MacMemory.h>
@ -314,6 +315,7 @@ static int command_main(char *localPath, char *remotePath, int mode) {
}
// Synchronize the files.
InitCursorCtl(NULL);
if (mode == kModePull) {
r = mac_from_unix_init();
if (r != 0) {
@ -339,6 +341,7 @@ static int command_main(char *localPath, char *remotePath, int mode) {
if (gLogLevel >= kLogInfo) {
fprintf(stderr, "## %s: %s\n", kActionName[file->action], name);
}
SpinCursor(32);
r = sync_file(&array[i], func, srcVol, srcDir, destVol, destDir,
tempVol, tempDir);
if (r != 0) {