fix: 取消刷新蓝牙时设置蓝牙可见超时时间300s

取消刷新蓝牙时设置蓝牙可见超时时间300s, 后端已设置为从不超时

Log: 取消刷新蓝牙时设置蓝牙可见超时时间300s
Bug: https://pms.uniontech.com/zentao/bug-view-66499.html
Change-Id: I47648c373e956387db835a19e26afacb480dbc71
This commit is contained in:
weizhixiang 2021-03-15 17:33:08 +08:00
parent 11b0707114
commit edf5460e6a

View File

@ -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);
}