aboutsummaryrefslogtreecommitdiff
path: root/src/profile.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile.vala')
-rw-r--r--src/profile.vala12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/profile.vala b/src/profile.vala
index cfe85e3..c32e46b 100644
--- a/src/profile.vala
+++ b/src/profile.vala
@@ -107,6 +107,18 @@ class Profile: Object
/// Actions
///
+ protected Action create_supported_action (Bluetooth bluetooth)
+ {
+ var action = new SimpleAction.stateful ("bluetooth-supported",
+ null,
+ bluetooth.supported);
+
+ bluetooth.notify["supported"].connect (()
+ => action.set_state (bluetooth.supported));
+
+ return action;
+ }
+
protected Action create_enabled_action (Bluetooth bluetooth)
{
var action = new SimpleAction.stateful ("bluetooth-enabled",