diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-bluetooth.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/indicator-bluetooth.vala b/src/indicator-bluetooth.vala index 3f3d583..1186961 100644 --- a/src/indicator-bluetooth.vala +++ b/src/indicator-bluetooth.vala @@ -190,11 +190,13 @@ public class BluetoothIndicator : AppIndicator.Indicator if (state == GnomeBluetooth.KillswitchState.HARD_BLOCKED) { + icon_name = "bluetooth-inactive"; status_item.label = _("Bluetooth: Disabled"); enable_item.visible = false; } if (state == GnomeBluetooth.KillswitchState.SOFT_BLOCKED) { + icon_name = "bluetooth-inactive"; status_item.label = _("Bluetooth: Off"); enable_item.label = _("Turn on Bluetooth"); enable_item.visible = true; @@ -208,6 +210,11 @@ public class BluetoothIndicator : AppIndicator.Indicator enable_value = true; } + if (state == GnomeBluetooth.KillswitchState.UNBLOCKED) + icon_name = "bluetooth-active"; + else + icon_name = "bluetooth-disabled"; + /* Disable devices when locked */ visible_item.visible = state == GnomeBluetooth.KillswitchState.UNBLOCKED; devices_separator.visible = state == GnomeBluetooth.KillswitchState.UNBLOCKED; |