aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-12-06 14:25:40 +0000
committerCharles Kerr <charles.kerr@canonical.com>2013-12-06 14:25:40 +0000
commit9d183eb66446fb0995f2fe98fd279625281a14ed (patch)
treeb2bd5c0a6961893418882b23141b336e847d144f /src
parenta26756e48e4e8d3caf0b8b20bb246c4107ca9cb0 (diff)
downloadayatana-indicator-bluetooth-9d183eb66446fb0995f2fe98fd279625281a14ed.tar.gz
ayatana-indicator-bluetooth-9d183eb66446fb0995f2fe98fd279625281a14ed.tar.bz2
ayatana-indicator-bluetooth-9d183eb66446fb0995f2fe98fd279625281a14ed.zip
on the desktop, show a bluetooth indicator if the hardware supports bluetooth and if the user has chosen for the indicator to be visible.
Diffstat (limited to 'src')
-rw-r--r--src/desktop.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop.vala b/src/desktop.vala
index 3c21124..198101a 100644
--- a/src/desktop.vala
+++ b/src/desktop.vala
@@ -66,7 +66,7 @@ class Desktop: Profile
// know when to show the indicator & when to hide it
settings.changed["visible"].connect (()=> update_visibility());
- bluetooth.notify["enabled"].connect (() => update_visibility());
+ bluetooth.notify["supported"].connect (() => update_visibility());
update_visibility ();
// when devices change, rebuild our device section
@@ -82,7 +82,7 @@ class Desktop: Profile
void update_visibility ()
{
- visible = bluetooth.enabled && settings.get_boolean("visible");
+ visible = bluetooth.supported && settings.get_boolean("visible");
}
///