From d0c4d0d494ea5248197049d9dcb980e92ce2f2c0 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Mon, 11 Aug 2014 12:00:56 +0300 Subject: [PATCH] Don't reload file info until changes are done (Bug 8377) When a user is copying or moving a file thunar reacts by refreshing the file info for each change event. This causes it to request a thumbnail refresh everytime. This patch changes it to use G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT so that when the series of file changes are done it will then refresh the info. --- thunar/thunar-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index c45cf81..59d377b 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -660,7 +660,7 @@ thunar_file_monitor_update (GFile *path, switch (event_type) { case G_FILE_MONITOR_EVENT_CREATED: - case G_FILE_MONITOR_EVENT_CHANGED: + case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: thunar_file_reload (file); break; -- 2.0.4