malcontent-control: Update the app filter after permissions have changed

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 <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-01-28 15:04:52 +00:00
parent 8badee7fa9
commit f9a11b22b3
1 changed files with 2 additions and 0 deletions

View File

@ -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]);