diff options
-rw-r--r-- | ash/system/bluetooth/tray_bluetooth.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/system/bluetooth/tray_bluetooth.cc b/ash/system/bluetooth/tray_bluetooth.cc index eb1e017..7c07e27 100644 --- a/ash/system/bluetooth/tray_bluetooth.cc +++ b/ash/system/bluetooth/tray_bluetooth.cc @@ -107,12 +107,13 @@ class BluetoothDetailedView : public TrayDetailsView, ash::Shell::GetInstance()->system_tray_delegate(); bool bluetooth_enabled = delegate->GetBluetoothEnabled(); if (!bluetooth_discovering_ && bluetooth_enabled) { + bluetooth_discovering_ = true; delegate->BluetoothStartDiscovering(); throbber_->Start(); } else if(!bluetooth_enabled) { + bluetooth_discovering_ = false; throbber_->Stop(); } - bluetooth_discovering_ = bluetooth_enabled; } void BluetoothStopDiscovering() { |