From 5aa0c0f7f1d9b6fe1b844d7688a18e68347db96b Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Thu, 3 Nov 2016 14:33:44 -0400 Subject: suppress notification on unmounting non-ejectiable device Do not send "it is not safe to remove the drive" notifcation on unmount of internal drive or other non-ejectable device. Also stop incorrect notification on cancelled eject operation (as when mounted by another user and not authorized to eject). --- libcaja-private/caja-file-operations.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libcaja-private/caja-file-operations.c') diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c index b76ef038..2767922b 100644 --- a/libcaja-private/caja-file-operations.c +++ b/libcaja-private/caja-file-operations.c @@ -2073,6 +2073,7 @@ unmount_mount_callback (GObject *source_object, if (data->eject) { unmounted = g_mount_eject_with_operation_finish (G_MOUNT (source_object), res, &error); + caja_application_notify_unmount_show ("It is now safe to remove the drive"); } else { unmounted = g_mount_unmount_with_operation_finish (G_MOUNT (source_object), res, &error); @@ -2100,8 +2101,6 @@ unmount_mount_callback (GObject *source_object, g_error_free (error); } - caja_application_notify_unmount_show ("It is now safe to remove the drive"); - eel_remove_weak_pointer (&data->parent_window); g_object_unref (data->mount); g_free (data); -- cgit v1.2.1