From 2300b1250fe7a417446704fbeb6b2c04fca6c40e Mon Sep 17 00:00:00 2001 From: chenwei Date: Tue, 19 Jan 2021 14:06:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E6=A0=8F=E8=93=9D?= =?UTF-8?q?=E7=89=99=E6=8F=92=E4=BB=B6=E6=97=A0=E5=88=B7=E6=96=B0=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 蓝牙第一次插入时电源状态有可能是错误的,导致任务栏蓝牙插件刷新按钮初始化错误,在蓝牙适配器电源状态改变时设置刷新按钮的显示状态 Log: 蓝牙插件刷新按钮去掉了无法刷新列表 Bug: https://pms.uniontech.com/zentao/bug-view-60828.html Change-Id: I2df971ffce5d2a4ce60c2835b540465c25890131 --- plugins/bluetooth/componments/bluetoothadapteritem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/bluetooth/componments/bluetoothadapteritem.cpp b/plugins/bluetooth/componments/bluetoothadapteritem.cpp index ceb0a4c65..58323d5c7 100644 --- a/plugins/bluetooth/componments/bluetoothadapteritem.cpp +++ b/plugins/bluetooth/componments/bluetoothadapteritem.cpp @@ -293,6 +293,7 @@ void BluetoothAdapterItem::initConnect() connect(m_adapter, &Adapter::poweredChanged, this, [ = ] (bool state) { initData(); + m_refreshBtn->setVisible(state); m_deviceListview->setVisible(state); m_adapterStateBtn->setChecked(state); m_adapterStateBtn->setEnabled(true);