From 829c47509b15cb0b42163da82d2a868dba7d063a Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Thu, 11 Dec 2025 13:40:39 +0100 Subject: [PATCH] Fix for progress handling This fixes a bug where nemo didn't notify the window manager that a progress was finished.Instead, the window thinks it's at 100% and counting until the next file operation starts and the new progress is told to the window manager. --- src/nemo-progress-ui-handler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nemo-progress-ui-handler.c b/src/nemo-progress-ui-handler.c index c6394091e..05d21a27e 100644 --- a/src/nemo-progress-ui-handler.c +++ b/src/nemo-progress-ui-handler.c @@ -314,6 +314,9 @@ progress_info_changed_cb (NemoProgressInfo *info, double progress = 0.0; int i = 0; for (l = self->priv->infos; l != NULL; l = l->next) { + if (nemo_progress_info_get_is_finished (l->data)) { + continue; + } progress = (progress + nemo_progress_info_get_progress (l->data)) / (double) ++i; } if (progress > 0) {