[gnome-software] trivial: Set the state when removing or installing webapps



commit 31f3fd70ca6d418f064c9056b8cfb975a41bce26
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 21 21:29:46 2013 +0100

    trivial: Set the state when removing or installing webapps

 src/plugins/gs-plugin-epiphany.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-epiphany.c b/src/plugins/gs-plugin-epiphany.c
index ec4ad62..76f4e75 100644
--- a/src/plugins/gs-plugin-epiphany.c
+++ b/src/plugins/gs-plugin-epiphany.c
@@ -338,6 +338,7 @@ gs_plugin_app_install (GsPlugin *plugin,
        /* is this a web app */
        filename = gs_app_get_metadata_item (app, "Epiphany::desktop-filename");
        if (filename != NULL) {
+               gs_app_set_state (app, GS_APP_STATE_INSTALLING);
                ret = gs_plugin_app_set_enabled (filename, TRUE, error);
                if (!ret)
                        goto out;
@@ -362,6 +363,7 @@ gs_plugin_app_remove (GsPlugin *plugin,
        /* is this a web app */
        filename = gs_app_get_metadata_item (app, "Epiphany::desktop-filename");
        if (filename != NULL) {
+               gs_app_set_state (app, GS_APP_STATE_REMOVING);
                ret = gs_plugin_app_set_enabled (filename, FALSE, error);
                if (!ret)
                        goto out;


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