feat(dde-dock):delete hotspot but list still exist for bug 5081

This commit is contained in:
wangxuwen 2020-01-03 18:08:09 +08:00
parent 7f16af4f7d
commit 0a876c3928

View File

@ -209,10 +209,10 @@ void WirelessList::updateAPList()
//if (m_networkInter->IsDeviceEnabled(m_device.dbusPath()))
if (m_device->enabled())
{
if (m_device->hotspotEnabled()) {
m_apList.clear();
m_apList.append(m_activeHotspotAP);
}
// if (m_device->hotspotEnabled()) {
// m_apList.clear();
// m_apList.append(m_activeHotspotAP);
// }
// sort ap list by strength
// std::sort(m_apList.begin(), m_apList.end(), std::greater<AccessPoint>());