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

internal-place-file: Skip ALREADY_MOUNTED error

That error is as good as a successful mount for all we care about.

Let's neither send a warning nor fail to open Network view in that case.
This commit is contained in:
António Fernandes 2024-06-15 15:09:26 +00:00
parent 21f2c91d69
commit c5a3dad7a4

View File

@ -53,7 +53,8 @@ network_mount_callback (GObject *source_object,
{
g_autoptr (GError) error = NULL;
if (!g_file_mount_enclosing_volume_finish (G_FILE (source_object), result, &error))
if (!g_file_mount_enclosing_volume_finish (G_FILE (source_object), result, &error) &&
!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_ALREADY_MOUNTED))
{
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
{