diff options
author | lukefromdc <[email protected]> | 2017-12-31 01:10:29 -0500 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-12-31 01:10:29 -0500 |
commit | f84970875ea6ac80f47e8fea1eeada7550f7a706 (patch) | |
tree | a3a4dad9520d8cefe5265f89cbf5fda21327b973 /libcaja-private | |
parent | 2ac7f3788d2bf9f4688da834856d53174f8f5124 (diff) | |
download | caja-f84970875ea6ac80f47e8fea1eeada7550f7a706.tar.bz2 caja-f84970875ea6ac80f47e8fea1eeada7550f7a706.tar.xz |
eject: Do not show "safe to remove" notification if drive fails to unmount
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-file-operations.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c index cb3ba2ba..d8320339 100644 --- a/libcaja-private/caja-file-operations.c +++ b/libcaja-private/caja-file-operations.c @@ -2135,7 +2135,10 @@ 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"); + if ((!error) || (unmounted == TRUE)){ + 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); |