From edf5460e6aa707cb017b7050a9b914256b7c92ac Mon Sep 17 00:00:00 2001 From: weizhixiang Date: Mon, 15 Mar 2021 17:33:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E8=93=9D=E7=89=99=E6=97=B6=E8=AE=BE=E7=BD=AE=E8=93=9D=E7=89=99?= =?UTF-8?q?=E5=8F=AF=E8=A7=81=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4300s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 取消刷新蓝牙时设置蓝牙可见超时时间300s, 后端已设置为从不超时 Log: 取消刷新蓝牙时设置蓝牙可见超时时间300s Bug: https://pms.uniontech.com/zentao/bug-view-66499.html Change-Id: I47648c373e956387db835a19e26afacb480dbc71 --- plugins/bluetooth/componments/adaptersmanager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/bluetooth/componments/adaptersmanager.cpp b/plugins/bluetooth/componments/adaptersmanager.cpp index 240fd03d5..328e268f5 100644 --- a/plugins/bluetooth/componments/adaptersmanager.cpp +++ b/plugins/bluetooth/componments/adaptersmanager.cpp @@ -95,7 +95,6 @@ void AdaptersManager::setAdapterPowered(const Adapter *adapter, const bool &powe connect(watcher, &QDBusPendingCallWatcher::finished, [this, call, adapter] { if (!call.isError()) { QDBusObjectPath dPath(adapter->id()); - m_bluetoothInter->SetAdapterDiscoverableTimeout(dPath, 60 * 5); m_bluetoothInter->SetAdapterDiscoverable(dPath, true); m_bluetoothInter->RequestDiscovery(dPath); } else { @@ -290,7 +289,6 @@ void AdaptersManager::inflateAdapter(Adapter *adapter, const QJsonObject &adapte void AdaptersManager::adapterRefresh(const Adapter *adapter) { QDBusObjectPath dPath(adapter->id()); - m_bluetoothInter->SetAdapterDiscoverableTimeout(dPath, 60 * 5); m_bluetoothInter->SetAdapterDiscoverable(dPath, true); m_bluetoothInter->RequestDiscovery(dPath); }