extensions-tool: Request missing attribute

g_file_enumerator_iterate() requires an enumerator that was created
with standard::file.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2121>
This commit is contained in:
Florian Müllner 2022-01-21 02:41:51 +01:00 committed by Marge Bot
parent 6a88c0f0be
commit 869560e054

View File

@ -263,7 +263,11 @@ file_delete_recursively (GFile *file,
g_autoptr (GFileEnumerator) file_enum = NULL;
GFile *child;
file_enum = g_file_enumerate_children (file, NULL, 0, NULL, NULL);
file_enum = g_file_enumerate_children (file,
G_FILE_ATTRIBUTE_STANDARD_NAME,
G_FILE_QUERY_INFO_NONE,
NULL,
NULL);
if (file_enum)
while (TRUE)
{