summaryrefslogtreecommitdiff
path: root/src/fr-command-zip.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-21 16:35:18 +0100
committerinfirit <[email protected]>2014-11-22 20:25:30 +0100
commit37badab513ccac69db427207c1cd38ee57997449 (patch)
tree7cffd3a0579d28eb631923a2c561119a2084fc00 /src/fr-command-zip.c
parent012914111652a7ee64abe08f457cd9eb77bc5f35 (diff)
downloadengrampa-37badab513ccac69db427207c1cd38ee57997449.tar.bz2
engrampa-37badab513ccac69db427207c1cd38ee57997449.tar.xz
progress dialog: show the number of remaining files to complete the operation
instead of the name of the file added/removed/extracted. Based on FR commit: bf2b5d2352cfcd9d4345dda7976208672838dce1 From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/fr-command-zip.c')
-rw-r--r--src/fr-command-zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index 2a5d42e..748af19 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -206,12 +206,12 @@ process_line__common (char *line,
if (line == NULL)
return;
- fr_command_message (comm, line);
-
if (comm->n_files != 0) {
double fraction = (double) ++comm->n_file / (comm->n_files + 1);
fr_command_progress (comm, fraction);
}
+ else
+ fr_command_message (comm, line);
}