move device added to the end

This commit is contained in:
2026-02-04 20:04:48 +02:00
parent 1f1b939af4
commit cce93c8c2a

View File

@@ -172,16 +172,15 @@ void AWDataEngineAggregator::sensorAdded(const QString &_sensor)
if (!isValidSensor(info)) if (!isValidSensor(info))
return; return;
// notify about new device
emit(deviceAdded(_sensor));
// process connection
m_sensors[_sensor] = info; m_sensors[_sensor] = info;
dropSource(_sensor); // force reconnect dropSource(_sensor); // force reconnect
if (!m_subscribed.contains(_sensor)) { if (!m_subscribed.contains(_sensor)) {
subscribeSources({_sensor}); subscribeSources({_sensor});
m_subscribed.insert(_sensor); m_subscribed.insert(_sensor);
} }
// notify about new device
emit(deviceAdded(_sensor));
} }