[gnome-software] app row: trivial: Only show permissions warning on updates page
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] app row: trivial: Only show permissions warning on updates page
- Date: Fri, 11 Jan 2019 15:11:33 +0000 (UTC)
commit 18c9764dbb5ea8ec08e9f46484381412b5792cf4
Author: Kalev Lember <klember redhat com>
Date: Fri Jan 11 16:10:02 2019 +0100
app row: trivial: Only show permissions warning on updates page
src/gs-app-row.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 25d90f85..4964749a 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -490,7 +490,8 @@ gs_app_row_refresh (GsAppRow *app_row)
}
/* add warning */
- if (gs_app_has_quirk (priv->app, GS_APP_QUIRK_NEW_PERMISSIONS)) {
+ if (priv->show_update &&
+ gs_app_has_quirk (priv->app, GS_APP_QUIRK_NEW_PERMISSIONS)) {
gtk_label_set_text (GTK_LABEL (priv->label_warning),
_("Requires additional permissions"));
gtk_widget_show (priv->label_warning);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]