[gnome-software] trivial: Never show star ratings in the update panel
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Never show star ratings in the update panel
- Date: Mon, 21 May 2018 14:32:08 +0000 (UTC)
commit 7aa1e706d39ec42cab9a6db940f411245e28d3ad
Author: Richard Hughes <richard hughsie com>
Date: Mon May 21 15:02:33 2018 +0100
trivial: Never show star ratings in the update panel
When installing a flatpak the state changes from UPDATABLE_LIVE to INSTALLING
and the '1.2.3 ▶ 1.2.4' changed to the star rating when you click the button.
src/gs-app-row.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 12f134bf..b1babc6b 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -89,9 +89,7 @@ gs_app_row_get_description (GsAppRow *app_row)
const gchar *tmp = NULL;
/* convert the markdown update description into PangoMarkup */
- if (priv->show_update &&
- (gs_app_get_state (priv->app) == AS_APP_STATE_UPDATABLE ||
- gs_app_get_state (priv->app) == AS_APP_STATE_UPDATABLE_LIVE)) {
+ if (priv->show_update) {
tmp = gs_app_get_update_details (priv->app);
if (tmp != NULL && tmp[0] != '\0')
return g_string_new (tmp);
@@ -370,9 +368,7 @@ gs_app_row_refresh (GsAppRow *app_row)
gtk_label_set_label (GTK_LABEL (priv->name_label),
gs_app_get_name (priv->app));
}
- if (priv->show_update &&
- (gs_app_get_state (priv->app) == AS_APP_STATE_UPDATABLE ||
- gs_app_get_state (priv->app) == AS_APP_STATE_UPDATABLE_LIVE)) {
+ if (priv->show_update) {
g_autofree gchar *verstr = NULL;
verstr = gs_app_row_format_version_update (priv->app);
gtk_label_set_label (GTK_LABEL (priv->version_label), verstr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]