From 442a98cb7011aa66c481cf43e893320a5e6b2956 Mon Sep 17 00:00:00 2001 From: ck Date: Tue, 12 Dec 2023 15:57:30 +0800 Subject: [PATCH] fix: turn on bluetooth loading animation not start change loading animation when bluetooth switch Issue: https://github.com/linuxdeepin/developer-center/issues/6033 --- plugins/bluetooth/componments/bluetoothadapteritem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/bluetooth/componments/bluetoothadapteritem.cpp b/plugins/bluetooth/componments/bluetoothadapteritem.cpp index 1edc59883..6edeee994 100644 --- a/plugins/bluetooth/componments/bluetoothadapteritem.cpp +++ b/plugins/bluetooth/componments/bluetoothadapteritem.cpp @@ -414,6 +414,8 @@ void BluetoothAdapterItem::initConnect() m_seperator->setVisible(false); m_adapterStateBtn->setEnabled(false); m_refreshBtn->setVisible(state); + // FIX #6033 开启蓝牙就开始转动,关闭就停止转动 + state ? m_refreshBtn->startRotate() : m_refreshBtn->stopRotate(); emit requestSetAdapterPower(m_adapter, state); }); connect(m_bluetoothInter, &DBusBluetooth::DisplaySwitchChanged, this, [ = ](bool value) {