aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/application-service-appstore.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 9c34a79..b2c18d4 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -949,6 +949,15 @@ static void
approver_request_cb (DBusGProxy *proxy, gboolean OUT_approved, GError *error, gpointer userdata)
{
g_debug("Approver responded: %s", OUT_approved ? "approve" : "rejected");
+ Application * app = (Application *)userdata;
+
+ if (OUT_approved) {
+ app->approved_by = g_list_prepend(app->approved_by, proxy);
+ } else {
+ app->approved_by = g_list_remove(app->approved_by, proxy);
+ }
+
+ /* TODO: Apply status */
return;
}