[gnome-software] details page: Fix the logic for determining if an app has a pending action
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] details page: Fix the logic for determining if an app has a pending action
- Date: Tue, 9 Oct 2018 13:13:36 +0000 (UTC)
commit 456ca0b4073a05a6c2c7b59b92692cf6c04bf0ad
Author: Kalev Lember <klember redhat com>
Date: Tue Oct 9 15:01:35 2018 +0200
details page: Fix the logic for determining if an app has a pending action
This fixes the "Pending installation…" text to only show when an app is
in the pending queue, and not for all installs.
https://gitlab.gnome.org/GNOME/gnome-software/issues/477
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 06bcc230..9aa8e21a 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]