[gnome-software] Revert "details page: Fix the logic for determining if an app has a pending action"



commit 5ebb15bfdd2b953ffb3f92638c0900ca4e874aa2
Author: Kalev Lember <klember redhat com>
Date:   Wed Oct 10 13:03:06 2018 +0200

    Revert "details page: Fix the logic for determining if an app has a pending action"
    
    I misunderstood what was going on here. Commit e0aeacc is the
    (hopefully) correct fix instead.
    
    This reverts commit 456ca0b4073a05a6c2c7b59b92692cf6c04bf0ad.

 src/gs-details-page.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 73daa871..d44561e6 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -250,7 +250,7 @@ app_has_pending_action (GsApp *app)
            gs_app_get_state (app) != AS_APP_STATE_QUEUED_FOR_INSTALL)
                return FALSE;
 
-       return (gs_app_get_pending_action (app) != GS_PLUGIN_ACTION_UNKNOWN) &&
+       return (gs_app_get_pending_action (app) != GS_PLUGIN_ACTION_UNKNOWN) ||
               (gs_app_get_state (app) == AS_APP_STATE_QUEUED_FOR_INSTALL);
 }
 


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