fix: turn on bluetooth loading animation not start

change loading animation when bluetooth switch

Issue: https://github.com/linuxdeepin/developer-center/issues/6033
This commit is contained in:
ck 2023-12-12 15:57:30 +08:00 committed by mike
parent 971cd92007
commit 442a98cb70

View File

@ -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) {