[gnome-software] Add AS_APP_STATE_REMOVING to gs_app_is_installed



commit 83b106d9b7320074a2d2086161e6f8bcb6203b12
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Mon Sep 5 16:41:14 2016 +0200

    Add AS_APP_STATE_REMOVING to gs_app_is_installed
    
    Because until a removing operation finishes successfully, the app
    should be considered as installed.

 src/gs-app.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 059348d..cd5ae99 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2750,7 +2750,8 @@ gs_app_is_installed (GsApp *app)
 
        return (state == AS_APP_STATE_INSTALLED) ||
               (state == AS_APP_STATE_UPDATABLE) ||
-              (state == AS_APP_STATE_UPDATABLE_LIVE);
+              (state == AS_APP_STATE_UPDATABLE_LIVE) ||
+              (state == AS_APP_STATE_REMOVING);
 }
 
 /**


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