mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 任务栏蓝牙插件无刷新按钮
蓝牙第一次插入时电源状态有可能是错误的,导致任务栏蓝牙插件刷新按钮初始化错误,在蓝牙适配器电源状态改变时设置刷新按钮的显示状态 Log: 蓝牙插件刷新按钮去掉了无法刷新列表 Bug: https://pms.uniontech.com/zentao/bug-view-60828.html Change-Id: I2df971ffce5d2a4ce60c2835b540465c25890131
This commit is contained in:
parent
eef486b62e
commit
2300b1250f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user