From 9d183eb66446fb0995f2fe98fd279625281a14ed Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 6 Dec 2013 14:25:40 +0000 Subject: on the desktop, show a bluetooth indicator if the hardware supports bluetooth and if the user has chosen for the indicator to be visible. --- src/desktop.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"); } /// -- cgit v1.2.3