From cce93c8c2abd5d570b04401843a18e587a7b70bf Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Wed, 4 Feb 2026 20:04:48 +0200 Subject: [PATCH] move device added to the end --- sources/awesome-widget/plugin/awdataengineaggregator.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/awesome-widget/plugin/awdataengineaggregator.cpp b/sources/awesome-widget/plugin/awdataengineaggregator.cpp index 7176dee..b0505e3 100644 --- a/sources/awesome-widget/plugin/awdataengineaggregator.cpp +++ b/sources/awesome-widget/plugin/awdataengineaggregator.cpp @@ -172,16 +172,15 @@ void AWDataEngineAggregator::sensorAdded(const QString &_sensor) if (!isValidSensor(info)) return; - // notify about new device - emit(deviceAdded(_sensor)); - - // process connection m_sensors[_sensor] = info; dropSource(_sensor); // force reconnect if (!m_subscribed.contains(_sensor)) { subscribeSources({_sensor}); m_subscribed.insert(_sensor); } + + // notify about new device + emit(deviceAdded(_sensor)); }