From 09fc6e7b1b7d7636e11c33e5b5d6f0368b948c77 Mon Sep 17 00:00:00 2001 From: songwentao Date: Sat, 17 Sep 2022 14:25:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=93=9D=E7=89=99?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=88=90=E5=8A=9F=E5=90=8E=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=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 连接需要PIN码的蓝牙设备,连接中的动画控件还停留在旧的位置,连接成功,该状态立即隐藏 Log: Influence: 任务栏-蓝牙插件-连接需要PIN码的蓝牙设备连接成功,蓝牙列表状态显示正常 Bug: https://pms.uniontech.com/bug-view-159331.html --- plugins/bluetooth/componments/bluetoothadapteritem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/bluetooth/componments/bluetoothadapteritem.cpp b/plugins/bluetooth/componments/bluetoothadapteritem.cpp index 514c76ea3..15fe213fd 100644 --- a/plugins/bluetooth/componments/bluetoothadapteritem.cpp +++ b/plugins/bluetooth/componments/bluetoothadapteritem.cpp @@ -106,17 +106,21 @@ 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); }