From f9a11b22b32024f06fbc0ca60a1c7e3f5781ee1f Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 28 Jan 2020 15:04:52 +0000 Subject: [PATCH] malcontent-control: Update the app filter after permissions have changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the user’s current set of permissions have changed, they may now be able to query the app filter whereas previously they weren’t allowed to. So try re-querying it. Signed-off-by: Philip Withnall --- malcontent-control/user-controls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/malcontent-control/user-controls.c b/malcontent-control/user-controls.c index 02e7acd..7a10f01 100644 --- a/malcontent-control/user-controls.c +++ b/malcontent-control/user-controls.c @@ -833,6 +833,7 @@ on_permission_allowed_cb (GObject *obj, { MctUserControls *self = MCT_USER_CONTROLS (user_data); + update_app_filter (self); setup_parental_control_settings (self); } @@ -872,6 +873,7 @@ mct_user_controls_set_permission (MctUserControls *self, } /* Handle changes. */ + update_app_filter (self); setup_parental_control_settings (self); g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_PERMISSION]);