[gnome-software: 6/10] trivial: app row: Remove a redundant condition



commit 643f526847bfdb8c008e78171787766876fcb3b6
Author: Kalev Lember <kalevlember gmail com>
Date:   Fri Feb 6 09:24:03 2015 +0100

    trivial: app row: Remove a redundant condition
    
    No need to special case the install button showing in case of updates
    view, we already hide all the buttons down below in this case.

 src/gs-app-row.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index ed06c8d..d93ca3c 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -209,8 +209,7 @@ gs_app_row_refresh (GsAppRow *app_row)
                break;
        case AS_APP_STATE_UPDATABLE:
        case AS_APP_STATE_INSTALLED:
-               if (gs_app_get_kind (app_row->priv->app) != GS_APP_KIND_SYSTEM &&
-                   !app_row->priv->show_update)
+               if (gs_app_get_kind (app_row->priv->app) != GS_APP_KIND_SYSTEM)
                        gtk_widget_set_visible (priv->button, TRUE);
                /* TRANSLATORS: this is a button next to the search results that
                 * allows the application to be easily removed */


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