[gnome-software/1365-move-application-size-in-installed-app-rows: 4/5] gs-app-row: Hide the update size from the row




commit f0f54004d1fb0b7f929ae575f97a66ff7533ae50
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 7 17:01:39 2021 +0200

    gs-app-row: Hide the update size from the row
    
    To match the new design, which shows it in the Download/Update button
    https://gitlab.gnome.org/Teams/Design/software-mockups/-/blob/master/updates-list-sections.png
    
    and to prepare for the install page size design change:
    https://gitlab.gnome.org/Teams/Design/software-mockups/-/blob/master/adaptive/installed.png
    
    which moves the size below the applications name, where it clashes
    with the version change information on the Updates page.

 src/gs-app-row.c | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 342fdd4e6..7fb2b5525 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -475,16 +475,6 @@ gs_app_row_actually_refresh (GsAppRow *app_row)
        /* show the right size */
        if (priv->show_installed_size) {
                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);
-                       break;
-               default:
-                       break;
-               }
        }
        if (size != GS_APP_SIZE_UNKNOWABLE && size != 0) {
                g_autofree gchar *sizestr = NULL;


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