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

window-slot: Don't extract from URI on FileChooser

When asked to open the URI leading to an archive file, the slot
marks the file for extraction as soon as the view is loaded.

In FileChooser modes we wouldn't extract anyway, since activation
is handled by the slot. But it would lead to other unexpected
results, like immediately sending the file to the portal as result.

This is really a corner case but let's avoid it anyway.
This commit is contained in:
António Fernandes 2024-06-22 19:44:52 +01:00
parent f5a5ae9511
commit b1a31dd3e1

View File

@ -1946,7 +1946,7 @@ handle_regular_file_if_needed (NautilusWindowSlot *self,
g_clear_object (&self->pending_file_to_activate);
self->pending_location = nautilus_file_get_parent_location (file);
if (nautilus_mime_file_extracts (file))
if (self->mode == NAUTILUS_MODE_BROWSE && nautilus_mime_file_extracts (file))
{
self->pending_file_to_activate = nautilus_file_ref (file);
}