[gnome-software] Don't show installed icon on app tiles while installing



commit 19c53433b87815ac29c11002fd20d552d628ad30
Author: Kalev Lember <klember redhat com>
Date:   Sat Apr 7 10:36:55 2018 +0200

    Don't show installed icon on app tiles while installing
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-software/issues/340

 src/gs-feature-tile.c | 2 +-
 src/gs-popular-tile.c | 2 +-
 src/gs-summary-tile.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-feature-tile.c b/src/gs-feature-tile.c
index d510d1a6..db5983a6 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -79,7 +79,6 @@ app_state_changed_idle (gpointer user_data)
 
        switch (gs_app_get_state (tile->app)) {
        case AS_APP_STATE_INSTALLED:
-       case AS_APP_STATE_INSTALLING:
        case AS_APP_STATE_REMOVING:
        case AS_APP_STATE_UPDATABLE:
        case AS_APP_STATE_UPDATABLE_LIVE:
@@ -88,6 +87,7 @@ app_state_changed_idle (gpointer user_data)
                                        _("Installed"));
                break;
        case AS_APP_STATE_AVAILABLE:
+       case AS_APP_STATE_INSTALLING:
        default:
                name = g_strdup (gs_app_get_name (tile->app));
                break;
diff --git a/src/gs-popular-tile.c b/src/gs-popular-tile.c
index 514f2375..4c998fe5 100644
--- a/src/gs-popular-tile.c
+++ b/src/gs-popular-tile.c
@@ -61,7 +61,6 @@ app_state_changed_idle (gpointer user_data)
 
        switch (gs_app_get_state (tile->app)) {
        case AS_APP_STATE_INSTALLED:
-       case AS_APP_STATE_INSTALLING:
        case AS_APP_STATE_REMOVING:
        case AS_APP_STATE_UPDATABLE:
        case AS_APP_STATE_UPDATABLE_LIVE:
@@ -71,6 +70,7 @@ app_state_changed_idle (gpointer user_data)
                                        gs_app_get_name (tile->app));
                break;
        case AS_APP_STATE_AVAILABLE:
+       case AS_APP_STATE_INSTALLING:
        default:
                installed = FALSE;
                name = g_strdup (gs_app_get_name (tile->app));
diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c
index 00e71bb3..050bb54d 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -76,7 +76,7 @@ app_state_changed_idle (gpointer user_data)
                                        gs_app_get_name (tile->app));
                break;
        case AS_APP_STATE_INSTALLING:
-               installed = TRUE;
+               installed = FALSE;
                name = g_strdup_printf (_("%s (Installing)"),
                                        gs_app_get_name (tile->app));
                break;


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