diff --git a/src/Permissions/Widgets/AppSettingsView.vala b/src/Permissions/Widgets/AppSettingsView.vala index 7c71ae56..d5583c30 100644 --- a/src/Permissions/Widgets/AppSettingsView.vala +++ b/src/Permissions/Widgets/AppSettingsView.vala @@ -77,6 +77,18 @@ public class Permissions.Widgets.AppSettingsView : Switchboard.SettingsPage { update_view (); + permission_box.row_activated.connect ((row) => { + if (row is PermissionSettingsWidget) { + row.active = !row.active; + } + }); + + sandbox_box.row_activated.connect ((row) => { + if (row is PermissionSettingsWidget) { + row.active = !row.active; + } + }); + reset_button.clicked.connect (() => { if (selected_app != null) { selected_app.reset_settings_to_standard (); diff --git a/src/Permissions/Widgets/PermissionSettingsWidget.vala b/src/Permissions/Widgets/PermissionSettingsWidget.vala index 65cbb458..44acb755 100644 --- a/src/Permissions/Widgets/PermissionSettingsWidget.vala +++ b/src/Permissions/Widgets/PermissionSettingsWidget.vala @@ -67,9 +67,5 @@ public class Permissions.Widgets.PermissionSettingsWidget : Gtk.ListBoxRow { child = grid; bind_property ("active", allow_switch, "active", BIDIRECTIONAL); - - activate.connect (() => { - allow_switch.activate (); - }); } }