[gnome-software] Never show the 'Remove' button for firmware
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Never show the 'Remove' button for firmware
- Date: Wed, 16 Mar 2016 09:58:43 +0000 (UTC)
commit 9501c2d165317fe19bf4cc97c790e84c943cc7f8
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 d07e014..740f490 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -254,7 +254,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]