Skip to content

Commit 5e7fe5b

Browse files
authored
Fix for progress handling (#3651)
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.
1 parent acd6117 commit 5e7fe5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nemo-progress-ui-handler.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ progress_info_changed_cb (NemoProgressInfo *info,
314314
double progress = 0.0;
315315
int i = 0;
316316
for (l = self->priv->infos; l != NULL; l = l->next) {
317+
if (nemo_progress_info_get_is_finished (l->data)) {
318+
continue;
319+
}
317320
progress = (progress + nemo_progress_info_get_progress (l->data)) / (double) ++i;
318321
}
319322
if (progress > 0) {

0 commit comments

Comments
 (0)