malcontent-control: Treat lack of GPermission as lack of permissions
Rather than assuming that having no GPermission means we do have permissions, which was a little confusing and didn’t match other points in the code. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
32c7435b8d
commit
7fd8705f33
|
@ -408,7 +408,7 @@ setup_parental_control_settings (MctUserControls *self)
|
|||
if (self->permission != NULL)
|
||||
is_authorized = g_permission_get_allowed (G_PERMISSION (self->permission));
|
||||
else
|
||||
is_authorized = TRUE;
|
||||
is_authorized = FALSE;
|
||||
|
||||
gtk_widget_set_sensitive (GTK_WIDGET (self), is_authorized);
|
||||
|
||||
|
|
Loading…
Reference in New Issue