mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-09 04:17:30 +08:00
fixed refresh problem
This commit is contained in:
parent
c26f0f344a
commit
b93aee4fc6
@ -2357,7 +2357,7 @@ add_remain_files (SeafRepo *repo, struct index_state *istate,
|
||||
path,
|
||||
S_IFREG,
|
||||
SYNC_STATUS_SYNCED,
|
||||
FALSE);
|
||||
TRUE);
|
||||
}
|
||||
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,
|
||||
FALSE);
|
||||
TRUE);
|
||||
send_file_sync_error_notification (repo->id, NULL, path,
|
||||
SYNC_ERROR_ID_INDEX_ERROR);
|
||||
}
|
||||
@ -2897,7 +2897,7 @@ update_active_file (SeafRepo *repo,
|
||||
path,
|
||||
S_IFREG,
|
||||
SYNC_STATUS_IGNORED,
|
||||
TRUE);
|
||||
FALSE);
|
||||
} else {
|
||||
SyncStatus status;
|
||||
gboolean is_writable;
|
||||
@ -3030,7 +3030,7 @@ update_active_path_recursive (SeafRepo *repo,
|
||||
path,
|
||||
S_IFDIR,
|
||||
SYNC_STATUS_IGNORED,
|
||||
TRUE);
|
||||
FALSE);
|
||||
} else {
|
||||
/* There is no need to update an empty dir. */
|
||||
SyncStatus status;
|
||||
@ -3044,7 +3044,7 @@ update_active_path_recursive (SeafRepo *repo,
|
||||
path,
|
||||
S_IFDIR,
|
||||
status,
|
||||
TRUE);
|
||||
FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2263,12 +2263,10 @@ seaf_sync_manager_update_active_path (SeafSyncManager *mgr,
|
||||
sync_status_tree_add (info->syncing_tree, path, mode, refresh);
|
||||
else if (status == SYNC_STATUS_SYNCED)
|
||||
sync_status_tree_add (info->synced_tree, path, mode, refresh);
|
||||
else {
|
||||
#ifdef WIN32
|
||||
if (refresh)
|
||||
seaf_sync_manager_add_refresh_path (mgr, path);
|
||||
else if (refresh)
|
||||
seaf_sync_manager_add_refresh_path (mgr, path);
|
||||
#endif
|
||||
}
|
||||
} else if (existing != status) {
|
||||
g_hash_table_replace (info->paths, g_strdup(path), (void*)status);
|
||||
|
||||
@ -2281,9 +2279,8 @@ seaf_sync_manager_update_active_path (SeafSyncManager *mgr,
|
||||
sync_status_tree_add (info->syncing_tree, path, mode, refresh);
|
||||
else if (status == SYNC_STATUS_SYNCED)
|
||||
sync_status_tree_add (info->synced_tree, path, mode, refresh);
|
||||
|
||||
#ifdef WIN32
|
||||
if (refresh)
|
||||
else if (refresh)
|
||||
seaf_sync_manager_add_refresh_path (mgr, path);
|
||||
#endif
|
||||
}
|
||||
|
@ -189,9 +189,6 @@ static void
|
||||
remove_item (SyncStatusDir *dir, const char *dname, const char *fullpath)
|
||||
{
|
||||
g_hash_table_remove (dir->dirents, dname);
|
||||
#ifdef WIN32
|
||||
seaf_sync_manager_add_refresh_path (seaf->sync_mgr, fullpath);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user