Skip to content

nemo-file-conflict-dialog.c: Load folder sizes before display. - #3828

Open
BreezeDelegate wants to merge 1 commit into
linuxmint:masterfrom
BreezeDelegate:fix-conflict-folder-size
Open

nemo-file-conflict-dialog.c: Load folder sizes before display.#3828
BreezeDelegate wants to merge 1 commit into
linuxmint:masterfrom
BreezeDelegate:fix-conflict-folder-size

Conversation

@BreezeDelegate

Copy link
Copy Markdown

The conflict dialog waits for icon metadata before reading size, but directory sizes depend on the directory item count. If the target folder has not been expanded yet, that count is unavailable and the dialog displays (null).

Wait for item counts on the two conflicting files before building the dialog, and use Nemo's non-null fallback for counts that are intentionally unavailable. The parent directory is no longer part of the wait list, so it is not counted unnecessarily.

Tested with a full Debian package build in the official Linux Mint 22.3 image and a targeted async metadata check reproducing (null) before the count and 0 items after it.

Fixes #3442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merging folders confirmation shows (null) size for original when parent is collapsed

1 participant