diff options
author | Robert Tari <robert@tari.in> | 2022-08-01 20:32:52 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2022-08-01 20:32:52 +0200 |
commit | 5ebb1a368c658d014a37c7558a71d9bab7b4a8b0 (patch) | |
tree | d0f419602d28e49f9c9fec8a1d63e74d0a167bf8 /src/desktop.vala | |
parent | ed77cff40121e046cba4352e9e32060872f716b4 (diff) | |
download | ayatana-indicator-bluetooth-5ebb1a368c658d014a37c7558a71d9bab7b4a8b0.tar.gz ayatana-indicator-bluetooth-5ebb1a368c658d014a37c7558a71d9bab7b4a8b0.tar.bz2 ayatana-indicator-bluetooth-5ebb1a368c658d014a37c7558a71d9bab7b4a8b0.zip |
Hide bluetooth icon on hardware without bluetooth support
fixes https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/issues/42
Diffstat (limited to 'src/desktop.vala')
-rw-r--r-- | src/desktop.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/desktop.vala b/src/desktop.vala index c70d49a..b7b48fd 100644 --- a/src/desktop.vala +++ b/src/desktop.vala @@ -1,6 +1,6 @@ /* * Copyright 2013 Canonical Ltd. - * Copyright 2021 Robert Tari + * Copyright 2021-2022 Robert Tari * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -80,6 +80,11 @@ class Desktop: Profile bluetooth.notify["supported"].connect (() => update_visibility()); update_visibility (); } + else + { + bluetooth.notify["supported"].connect (() => update_root_action_state()); + update_root_action_state(); + } // when devices change, rebuild our device section bluetooth.devices_changed.connect (()=> { |