fix: 任务栏蓝牙插件无刷新按钮

蓝牙第一次插入时电源状态有可能是错误的,导致任务栏蓝牙插件刷新按钮初始化错误,在蓝牙适配器电源状态改变时设置刷新按钮的显示状态

Log: 蓝牙插件刷新按钮去掉了无法刷新列表
Bug: https://pms.uniontech.com/zentao/bug-view-60828.html
Change-Id: I2df971ffce5d2a4ce60c2835b540465c25890131
This commit is contained in:
chenwei 2021-01-19 14:06:10 +08:00
parent eef486b62e
commit 2300b1250f

View File

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