aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/profile.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profile.vala b/src/profile.vala
index c1e3f6f..cfe85e3 100644
--- a/src/profile.vala
+++ b/src/profile.vala
@@ -114,10 +114,10 @@ class Profile: Object
!bluetooth.blocked);
action.activate.connect (()
- => action.set_state (!action.get_state().get_boolean()));
+ => action.change_state (!action.get_state().get_boolean()));
- action.notify["state"].connect (()
- => bluetooth.try_set_blocked (!action.get_state().get_boolean()));
+ action.change_state.connect ((action, requestedValue)
+ => bluetooth.try_set_blocked (!requestedValue.get_boolean()));
bluetooth.notify["blocked"].connect (()
=> action.set_state (!bluetooth.blocked));