fix(dock): 修改任务栏蓝牙插件,开启蓝牙后自动扫描设备提前终止

dock在打开开关后,此时dde-daemon会收到蓝牙powered打开信号,会延时1秒关闭一次扫描后开始回连和扫描;
当dock发送一次开始扫描后,dde-daemon此时关闭扫描会在dde-daemon开始自动扫描之后,导致打断了dde-daemon的自动开始扫描;

Log: 修改任务栏开启蓝牙无法自动扫描
Bug: https://pms.uniontech.com/zentao/bug-view-104731.html
Influence: 任务栏-打开蓝牙
Change-Id: Ie59b9982816fb642417530ab914b535c07d0c957
This commit is contained in:
Li Xi 2021-11-25 15:26:47 +08:00
parent 0e9ae2f588
commit cf9c26325a

View File

@ -94,7 +94,6 @@ void AdaptersManager::setAdapterPowered(const Adapter *adapter, const bool &powe
if (!call.isError()) {
QDBusObjectPath dPath(adapter->id());
m_bluetoothInter->SetAdapterDiscoverable(dPath, true);
m_bluetoothInter->RequestDiscovery(dPath);
} else {
qWarning() << call.error().message();
}