diff options
Diffstat (limited to 'src/desktop.vala')
-rw-r--r-- | src/desktop.vala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/desktop.vala b/src/desktop.vala index 7c99a45..4e36273 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.connect (() => update_visibility()); + bluetooth.notify["enabled"].connect (() => update_visibility()); update_visibility (); // when devices change, rebuild our device section @@ -82,7 +82,7 @@ class Desktop: Profile void update_visibility () { - visible = bluetooth.powered && !bluetooth.blocked && settings.get_boolean("visible"); + visible = bluetooth.enabled && settings.get_boolean("visible"); } /// @@ -229,10 +229,6 @@ class Desktop: Profile bluetooth.notify["discoverable"].connect (() => action.set_state (bluetooth.discoverable)); - action.set_enabled (bluetooth.powered); - bluetooth.notify["powered"].connect (() - => action.set_enabled (bluetooth.powered)); - return action; } |