Commit 47845327 authored by António Fernandes's avatar António Fernandes 🐚 Committed by Carlos Soriano

operations-ui-manager: Always get dir item count

When comparing conflicting folders, we provide the item count for each.
However, sometimes we do not have the directory item count.

Make sure to request the item count before setting the size label.

Fixes #269
parent 328cec78
Pipeline #10832 passed with stage
in 7 minutes and 31 seconds
......@@ -431,7 +431,7 @@ run_file_conflict_dialog (gpointer user_data)
files = g_list_prepend (files, data->destination_directory);
nautilus_file_list_call_when_ready (files,
NAUTILUS_FILE_ATTRIBUTES_FOR_ICON,
NAUTILUS_FILE_ATTRIBUTES_FOR_ICON | NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT,
&data->handle,
data->on_file_list_ready,
data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment