mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: 取消刷新蓝牙时设置蓝牙可见超时时间300s
取消刷新蓝牙时设置蓝牙可见超时时间300s, 后端已设置为从不超时 Log: 取消刷新蓝牙时设置蓝牙可见超时时间300s Bug: https://pms.uniontech.com/zentao/bug-view-66499.html Change-Id: I47648c373e956387db835a19e26afacb480dbc71
This commit is contained in:
parent
11b0707114
commit
edf5460e6a
@ -95,7 +95,6 @@ void AdaptersManager::setAdapterPowered(const Adapter *adapter, const bool &powe
|
|||||||
connect(watcher, &QDBusPendingCallWatcher::finished, [this, call, adapter] {
|
connect(watcher, &QDBusPendingCallWatcher::finished, [this, call, adapter] {
|
||||||
if (!call.isError()) {
|
if (!call.isError()) {
|
||||||
QDBusObjectPath dPath(adapter->id());
|
QDBusObjectPath dPath(adapter->id());
|
||||||
m_bluetoothInter->SetAdapterDiscoverableTimeout(dPath, 60 * 5);
|
|
||||||
m_bluetoothInter->SetAdapterDiscoverable(dPath, true);
|
m_bluetoothInter->SetAdapterDiscoverable(dPath, true);
|
||||||
m_bluetoothInter->RequestDiscovery(dPath);
|
m_bluetoothInter->RequestDiscovery(dPath);
|
||||||
} else {
|
} else {
|
||||||
@ -290,7 +289,6 @@ void AdaptersManager::inflateAdapter(Adapter *adapter, const QJsonObject &adapte
|
|||||||
void AdaptersManager::adapterRefresh(const Adapter *adapter)
|
void AdaptersManager::adapterRefresh(const Adapter *adapter)
|
||||||
{
|
{
|
||||||
QDBusObjectPath dPath(adapter->id());
|
QDBusObjectPath dPath(adapter->id());
|
||||||
m_bluetoothInter->SetAdapterDiscoverableTimeout(dPath, 60 * 5);
|
|
||||||
m_bluetoothInter->SetAdapterDiscoverable(dPath, true);
|
m_bluetoothInter->SetAdapterDiscoverable(dPath, true);
|
||||||
m_bluetoothInter->RequestDiscovery(dPath);
|
m_bluetoothInter->RequestDiscovery(dPath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user