The progress bar was also wrong
This commit is contained in:
parent
b131d0d80f
commit
22593c3a60
@ -98,7 +98,8 @@ static void _move_refresh(Move * move)
|
|||||||
snprintf(buf, sizeof(buf), "Moving file: %s", move->filev[move->cur]);
|
snprintf(buf, sizeof(buf), "Moving file: %s", move->filev[move->cur]);
|
||||||
gtk_label_set_text(GTK_LABEL(move->label), buf);
|
gtk_label_set_text(GTK_LABEL(move->label), buf);
|
||||||
snprintf(buf, sizeof(buf), "File %u of %u", move->cur, move->filec - 1);
|
snprintf(buf, sizeof(buf), "File %u of %u", move->cur, move->filec - 1);
|
||||||
fraction = (double)(move->cur) / (double)move->filec;
|
fraction = move->cur;
|
||||||
|
fraction /= move->filec - 1;
|
||||||
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(move->progress), buf);
|
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(move->progress), buf);
|
||||||
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(move->progress),
|
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(move->progress),
|
||||||
fraction);
|
fraction);
|
||||||
|
Loading…
Reference in New Issue
Block a user