[gnome-software/wip/kalev/download-step: 8/10] updates section: Make sure progress bar starts at 0



commit 11cfc9cc20042d82fda2f45d138773723ac8ba2f
Author: Kalev Lember <klember redhat com>
Date:   Tue Oct 23 12:44:51 2018 +0200

    updates section: Make sure progress bar starts at 0

 src/gs-updates-section.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index e37a8946..e82fb41f 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -260,6 +260,7 @@ _update_buttons (GsUpdatesSection *self)
                gtk_widget_set_sensitive (self->button_cancel,
                                          !g_cancellable_is_cancelled (self->cancellable));
                gtk_stack_set_visible_child_name (self->button_stack, "cancel");
+               gs_progress_button_set_progress (GS_PROGRESS_BUTTON (self->button_cancel), 0);
                gtk_widget_show (GTK_WIDGET (self->button_stack));
                return;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]