[gnome-software] Show the 'Launch' button for installed web-apps too



commit 359f4d5033893a49c54c8f868188516d751805b2
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jan 3 11:33:11 2014 +0000

    Show the 'Launch' button for installed web-apps too

 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 c1e1bed..73cf115 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -611,7 +611,8 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
        switch (gs_app_get_state (priv->app)) {
        case GS_APP_STATE_INSTALLED:
        case GS_APP_STATE_UPDATABLE:
-               if (gs_app_get_id_kind (priv->app) == GS_APP_ID_KIND_DESKTOP) {
+               if (gs_app_get_id_kind (priv->app) == GS_APP_ID_KIND_DESKTOP ||
+                   gs_app_get_id_kind (priv->app) == GS_APP_ID_KIND_WEBAPP) {
                        gtk_widget_set_visible (widget, TRUE);
                } else {
                        gtk_widget_set_visible (widget, FALSE);


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