[gnome-software] trivial: Include related apps when getting the download size
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Include related apps when getting the download size
- Date: Fri, 13 Jan 2017 09:28:43 +0000 (UTC)
commit 90ccddf8968cc0a306998839ddccdf862ef205ec
Author: Richard Hughes <richard hughsie com>
Date: Thu Jan 12 19:42:02 2017 +0000
trivial: Include related apps when getting the download size
src/gs-app.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 4db8e97..abc74c7 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2607,6 +2607,12 @@ gs_app_get_size_download (GsApp *app)
sz += gs_app_get_size_installed (app->runtime);
}
+ /* add related apps */
+ for (guint i = 0; i < app->related->len; i++) {
+ GsApp *app_related = g_ptr_array_index (app->related, i);
+ sz += gs_app_get_size_download (app_related);
+ }
+
return sz;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]