mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix(bluetooth): 蓝牙关闭重新打开后,还显示已经关闭的蓝牙设备
任务栏关闭蓝牙设备后需要主动发送ClearUnpairedDevice Dbus消息给后端 Log: 解决蓝牙关闭重新打开后,还显示已经关闭的蓝牙设备问题 Bug: https://pms.uniontech.com/zentao/bug-view-34997.html
This commit is contained in:
parent
16374fb637
commit
a8d0e8fea6
@ -110,6 +110,13 @@ void AdaptersManager::setAdapterPowered(const Adapter *adapter, const bool &powe
|
||||
qWarning() << call.error().message();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
QDBusPendingCall call = m_bluetoothInter->ClearUnpairedDevice();
|
||||
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
|
||||
connect(watcher, &QDBusPendingCallWatcher::finished, [ = ] {
|
||||
if (call.isError())
|
||||
qWarning() << call.error().message();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user