refresh explorer only for top dir

This commit is contained in:
caixiangyue 2021-03-16 11:44:00 +08:00
parent 50d4d5a9e2
commit c26f0f344a
3 changed files with 9 additions and 7 deletions

View File

@ -3620,7 +3620,7 @@ set_path_status_syncing (gpointer key, gpointer value, gpointer user_data)
path,
mode,
SYNC_STATUS_SYNCING,
TRUE);
FALSE);
}
static void
@ -3634,7 +3634,7 @@ set_path_status_synced (gpointer key, gpointer value, gpointer user_data)
path,
mode,
SYNC_STATUS_SYNCED,
TRUE);
FALSE);
}
static void *

View File

@ -2357,7 +2357,7 @@ add_remain_files (SeafRepo *repo, struct index_state *istate,
path,
S_IFREG,
SYNC_STATUS_SYNCED,
TRUE);
FALSE);
}
if (ret < 0) {
seaf_sync_manager_update_active_path (seaf->sync_mgr,
@ -2365,7 +2365,7 @@ add_remain_files (SeafRepo *repo, struct index_state *istate,
path,
S_IFREG,
SYNC_STATUS_ERROR,
TRUE);
FALSE);
send_file_sync_error_notification (repo->id, NULL, path,
SYNC_ERROR_ID_INDEX_ERROR);
}
@ -2920,7 +2920,7 @@ update_active_file (SeafRepo *repo,
path,
S_IFREG,
status,
TRUE);
FALSE);
}
}

View File

@ -2265,7 +2265,8 @@ seaf_sync_manager_update_active_path (SeafSyncManager *mgr,
sync_status_tree_add (info->synced_tree, path, mode, refresh);
else {
#ifdef WIN32
seaf_sync_manager_add_refresh_path (mgr, path);
if (refresh)
seaf_sync_manager_add_refresh_path (mgr, path);
#endif
}
} else if (existing != status) {
@ -2282,7 +2283,8 @@ seaf_sync_manager_update_active_path (SeafSyncManager *mgr,
sync_status_tree_add (info->synced_tree, path, mode, refresh);
#ifdef WIN32
seaf_sync_manager_add_refresh_path (mgr, path);
if (refresh)
seaf_sync_manager_add_refresh_path (mgr, path);
#endif
}