[gnome-software/gnome-3-20] Never show the 'Remove' button for firmware



commit 50c07d334bc3e66aef09e41ade3a4308ffc92eec
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 16 09:38:02 2016 +0000

    Never show the 'Remove' button for firmware

 src/gs-shell-details.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 9caa854..ead168b 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -257,7 +257,8 @@ gs_shell_details_switch_to (GsPage *page, gboolean scroll_up)
                gtk_widget_set_visible (self->button_details_launch, FALSE);
 
        /* remove button */
-       if (gs_app_has_quirk (self->app, AS_APP_QUIRK_COMPULSORY)) {
+       if (gs_app_has_quirk (self->app, AS_APP_QUIRK_COMPULSORY) ||
+           gs_app_get_kind (self->app) == AS_APP_KIND_FIRMWARE) {
                gtk_widget_set_visible (self->button_remove, FALSE);
        } else {
                switch (state) {


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