1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-06-30 23:46:35 +00:00

files-view: Update file mount info when mounted

Otherwise, nautilus_file_can_unmount() will still return FALSE for
a file which is already mounted, until the can-unmount attribute
is updated asynchronously by the file monitor.

This is needed for the next commit to be able to check whether
unmount is possible as soon as the mount operation completes.
This commit is contained in:
António Fernandes 2024-01-22 18:54:01 +00:00
parent 7e6af9d61d
commit da79c2f3bf

View File

@ -6832,6 +6832,8 @@ file_mount_callback (NautilusFile *file,
view = NAUTILUS_FILES_VIEW (callback_data);
nautilus_file_invalidate_attributes (file, NAUTILUS_FILE_ATTRIBUTE_MOUNT);
if (error != NULL &&
(error->domain != G_IO_ERROR ||
(error->code != G_IO_ERROR_CANCELLED &&