aboutsummaryrefslogtreecommitdiff
path: root/src/phone.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-11 08:38:51 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-10-11 08:38:51 -0500
commitf7ca11b202e442e759cca86a70d9c6d027e82e76 (patch)
tree144aabb1f6df9fa060bd4418fb26857d5055dc75 /src/phone.vala
parent3145f10632a3ce7ee33e8cdaa78401d7eb881f4e (diff)
downloadayatana-indicator-bluetooth-f7ca11b202e442e759cca86a70d9c6d027e82e76.tar.gz
ayatana-indicator-bluetooth-f7ca11b202e442e759cca86a70d9c6d027e82e76.tar.bz2
ayatana-indicator-bluetooth-f7ca11b202e442e759cca86a70d9c6d027e82e76.zip
if /dev/rfkill doesn't exist or isn't writable, then try to handle bluetooth toggles simply by toggling bluez Adapters' Powered property
Diffstat (limited to 'src/phone.vala')
-rw-r--r--src/phone.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phone.vala b/src/phone.vala
index 18c698c..2b0b96b 100644
--- a/src/phone.vala
+++ b/src/phone.vala
@@ -53,7 +53,7 @@ class Phone: Profile
void update_visibility ()
{
- visible = bluetooth.powered && !bluetooth.blocked;
+ visible = bluetooth.enabled;
}
///