diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js index d84bc3ad5..39c2ab62c 100644 --- a/js/ui/status/bluetooth.js +++ b/js/ui/status/bluetooth.js @@ -41,7 +41,6 @@ class Indicator extends PanelMenu.SystemIndicator { this._proxy.connect('g-properties-changed', this._queueSync.bind(this)); this._item = new PopupMenu.PopupSubMenuMenuItem(_("Bluetooth"), true); - this._item.icon.icon_name = 'bluetooth-active-symbolic'; this._toggleItem = new PopupMenu.PopupMenuItem(''); this._toggleItem.connect('activate', () => { @@ -159,6 +158,9 @@ class Indicator extends PanelMenu.SystemIndicator { else this._item.visible = adapterPowered; + this._item.icon.icon_name = adapterPowered + ? 'bluetooth-active-symbolic' : 'bluetooth-disabled-symbolic'; + if (nConnectedDevices > 1) /* Translators: this is the number of connected bluetooth devices */ this._item.label.text = ngettext('%d Connected', '%d Connected', nConnectedDevices).format(nConnectedDevices);