[gnome-software/wip/kalev/details-page-progress: 2/4] packagekit: Propagate 0 percent of progress as well
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/details-page-progress: 2/4] packagekit: Propagate 0 percent of progress as well
- Date: Thu, 30 Jul 2015 10:34:58 +0000 (UTC)
commit f9435c4760b8f1b5332a0a645fefba03e130b772
Author: Kalev Lember <klember redhat com>
Date: Thu Jul 30 10:21:49 2015 +0200
packagekit: Propagate 0 percent of progress as well
Don't special case 0%; we need to make sure it correctly gets passed
down to the UI code so that each of multiple install-remove cycles start
on 0% percent again.
src/plugins/gs-plugin-packagekit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index 95da83f..a66fcaa 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -101,7 +101,7 @@ gs_plugin_packagekit_progress_cb (PkProgress *progress,
g_object_get (progress,
"percentage", &percentage,
NULL);
- if (percentage > 0 && percentage <= 100)
+ if (percentage >= 0 && percentage <= 100)
gs_plugin_progress_update (plugin, NULL, percentage);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]