[gnome-software/gnome-3-22] trivial: Set the size correctly for PackageKit applications with pending updates



commit 328d658c0aabb3b40fd5f294de1e5bd44d1c7d98
Author: Richard Hughes <richard hughsie com>
Date:   Mon Nov 28 14:18:07 2016 +0000

    trivial: Set the size correctly for PackageKit applications with pending updates

 src/plugins/gs-plugin-packagekit-refine.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index 04e162f..0c709bc 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -485,7 +485,7 @@ gs_plugin_packagekit_refine_details_app (GsPlugin *plugin,
        }
 
        /* the size is the size of all sources */
-       if (gs_app_get_state (app) == AS_APP_STATE_INSTALLED) {
+       if (gs_app_is_installed (app)) {
                gs_app_set_size_download (app, GS_APP_SIZE_UNKNOWABLE);
                if (size > 0 && gs_app_get_size_installed (app) == 0)
                        gs_app_set_size_installed (app, size);


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