Moved setInfo() into the if-statement

This commit is contained in:
CommanderRedYT
2021-08-16 17:43:11 +02:00
parent 8507df1bcf
commit bb112eeaad

View File

@ -51,8 +51,8 @@ void DeviceFinder::addDevice(const QBluetoothDeviceInfo &device)
auto info = new DeviceInfo(device);
if(info->getName().contains("bobby")) { // Only add devices with "bobby" in device name to list; (filter)
m_devices.append(info);
setInfo(tr("Low Energy device found. Scanning more..."));
}
setInfo(tr("Low Energy device found. Scanning more..."));
//! [devicediscovery-3]
emit devicesChanged();
//! [devicediscovery-4]