mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-02-04 23:39:49 +00:00
move device added to the end
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user