[gnome-software] trivial: Show the percentage straight away after clicking install
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Show the percentage straight away after clicking install
- Date: Tue, 11 Jul 2017 16:12:10 +0000 (UTC)
commit ce0447a35328c30bd08e23eaf2f2d37435d23a6c
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 11 16:56:34 2017 +0100
trivial: Show the percentage straight away after clicking install
This means we don't get a phantom progressbar that only appears after a few seconds.
src/gs-details-page.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index a65a502..8b882eb 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -440,7 +440,7 @@ gs_details_page_refresh_progress (GsDetailsPage *self)
switch (state) {
case AS_APP_STATE_INSTALLING:
percentage = gs_app_get_progress (self->app);
- if (percentage > 0) {
+ if (percentage <= 100) {
g_autofree gchar *str = g_strdup_printf ("%u%%", percentage);
gtk_label_set_label (GTK_LABEL (self->label_progress_percentage), str);
gtk_widget_set_visible (self->label_progress_percentage, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]