From cf9c26325a9b3af6da39127d47597b69812116cb Mon Sep 17 00:00:00 2001 From: Li Xi Date: Thu, 25 Nov 2021 15:26:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(dock):=20=E4=BF=AE=E6=94=B9=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=A0=8F=E8=93=9D=E7=89=99=E6=8F=92=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E8=93=9D=E7=89=99=E5=90=8E=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=E8=AE=BE=E5=A4=87=E6=8F=90=E5=89=8D=E7=BB=88?= =?UTF-8?q?=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- plugins/bluetooth/componments/adaptersmanager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/bluetooth/componments/adaptersmanager.cpp b/plugins/bluetooth/componments/adaptersmanager.cpp index e67ea518a..34e65e13d 100644 --- a/plugins/bluetooth/componments/adaptersmanager.cpp +++ b/plugins/bluetooth/componments/adaptersmanager.cpp @@ -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(); }