diff options
author | Krifa75 <yahiaoui.fakhri@gmail.com> | 2021-04-29 12:32:52 +0200 |
---|---|---|
committer | Krifa75 <yahiaoui.fakhri@gmail.com> | 2021-04-29 12:32:52 +0200 |
commit | bc6fe062386f51ad9c5fff6aae46121746418d3b (patch) | |
tree | 00adc20c35ac422dc6f6aff6ddb70dae9b0d7df1 | |
parent | c415972a99028b1c983e04d94dbc1139c7f39873 (diff) | |
download | eog-bc6fe062386f51ad9c5fff6aae46121746418d3b.tar.gz |
Remove directories when unmount external drive
-rw-r--r-- | src/eog-list-store.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eog-list-store.c b/src/eog-list-store.c index 08f5305b..5a422eaa 100644 --- a/src/eog-list-store.c +++ b/src/eog-list-store.c @@ -461,6 +461,8 @@ file_monitor_changed_cb (GFileMonitor *monitor, } g_object_unref (file_info); break; + case G_FILE_MONITOR_EVENT_PRE_UNMOUNT: + case G_FILE_MONITOR_EVENT_UNMOUNTED: case G_FILE_MONITOR_EVENT_MOVED_OUT: case G_FILE_MONITOR_EVENT_DELETED: if (is_file_in_list_store_file (store, file, &iter)) { @@ -544,8 +546,6 @@ file_monitor_changed_cb (GFileMonitor *monitor, g_object_unref (file_info); break; case G_FILE_MONITOR_EVENT_CHANGED: - case G_FILE_MONITOR_EVENT_PRE_UNMOUNT: - case G_FILE_MONITOR_EVENT_UNMOUNTED: case G_FILE_MONITOR_EVENT_MOVED: break; } |