From ef085a0aaf756a8eaf8f2bd7362cc0fedc92b572 Mon Sep 17 00:00:00 2001 From: lichangze Date: Sat, 17 Sep 2022 17:31:49 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E4=BF=AE=E5=A4=8D=E8=93=9D?= =?UTF-8?q?=E7=89=99=E8=BF=9E=E6=8E=A5=E6=88=90=E5=8A=9F=E5=90=8E=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 09fc6e7b Change-Id: I9ce274ae00533b937f78ba1b879dba45e952b677 --- plugins/bluetooth/componments/bluetoothadapteritem.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/bluetooth/componments/bluetoothadapteritem.cpp b/plugins/bluetooth/componments/bluetoothadapteritem.cpp index 15fe213fd..514c76ea3 100644 --- a/plugins/bluetooth/componments/bluetoothadapteritem.cpp +++ b/plugins/bluetooth/componments/bluetoothadapteritem.cpp @@ -106,21 +106,17 @@ void BluetoothDeviceItem::updateIconTheme(DGuiApplicationHelper::ColorType type) void BluetoothDeviceItem::updateDeviceState(Device::State state) { m_labelAction->setText(m_device->alias()); - if (state == Device::StateAvailable) { m_loading->start(); - m_loading->setVisible(true); m_stateAction->setVisible(true); m_connAction->setVisible(false); } else if (state == Device::StateConnected) { m_loading->stop(); - m_loading->setVisible(false); m_stateAction->setVisible(false); m_connAction->setVisible(true); emit requestTopDeviceItem(m_standarditem); } else { m_loading->stop(); - m_loading->setVisible(false); m_stateAction->setVisible(false); m_connAction->setVisible(false); }