mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Merge branch 'fengshaoxiong/uos' into 'uos'
fix : show two bluetooth when connect one bluetooth constant See merge request dde-v20/dde-dock!535
This commit is contained in:
commit
1ef8c88033
@ -133,11 +133,19 @@ void AdapterItem::deviceItemPaired(const bool paired)
|
||||
if (device) {
|
||||
DeviceItem *deviceItem = m_deviceItems.value(device->id());
|
||||
if (paired) {
|
||||
m_sortUnConnect.removeOne(deviceItem);
|
||||
m_sortConnected << deviceItem;
|
||||
int index = m_sortConnected.indexOf(deviceItem);
|
||||
|
||||
if (index < 0) {
|
||||
m_sortUnConnect.removeOne(deviceItem);
|
||||
m_sortConnected << deviceItem;
|
||||
}
|
||||
} else {
|
||||
m_sortConnected.removeOne(deviceItem);
|
||||
m_sortUnConnect << deviceItem;
|
||||
int index = m_sortUnConnect.indexOf(deviceItem);
|
||||
|
||||
if(index < 0){
|
||||
m_sortConnected.removeOne(deviceItem);
|
||||
m_sortUnConnect << deviceItem;
|
||||
}
|
||||
}
|
||||
showDevices(m_adapter->powered());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user