[gnome-software/867-show-download-size-in-updates] gs-app-row: Show download size also for the offline updates



commit e626d46c3df00ae0e0df35ce5f2135678f78b01e
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 19 22:46:34 2021 +0200

    gs-app-row: Show download size also for the offline updates
    
    It's useful to know how large the download is for any update, not only
    for the live (Flatpak and such) updates, thus show if, if known.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/867

 src/gs-app-row.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index e3c5d0802..0c0f706cf 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -455,6 +455,7 @@ gs_app_row_actually_refresh (GsAppRow *app_row)
                size = gs_app_get_size_installed (priv->app);
        } else if (priv->show_update) {
                switch (gs_app_get_state (priv->app)) {
+               case GS_APP_STATE_UPDATABLE:
                case GS_APP_STATE_UPDATABLE_LIVE:
                case GS_APP_STATE_INSTALLING:
                        size = gs_app_get_size_download (priv->app);


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