We want the discovery mode active when the reachable devices are needed
This commit is contained in:
parent
d6eb2d07bc
commit
8b523ad59a
1 changed files with 4 additions and 4 deletions
|
@ -159,11 +159,11 @@ void DevicesModel::setDisplayFilter(int flags)
|
|||
{
|
||||
m_displayFilter = (StatusFilterFlag)flags;
|
||||
|
||||
const bool onlyReachable = (m_displayFilter & StatusFilterFlag::Reachable);
|
||||
if (onlyReachable)
|
||||
m_dbusInterface->releaseDiscoveryMode(*s_keyId);
|
||||
else
|
||||
const bool reachableNeeded = (m_displayFilter & StatusFilterFlag::Reachable);
|
||||
if (reachableNeeded)
|
||||
m_dbusInterface->acquireDiscoveryMode(*s_keyId);
|
||||
else
|
||||
m_dbusInterface->releaseDiscoveryMode(*s_keyId);
|
||||
|
||||
refreshDeviceList();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue