fix: check if subscription optimisation is enabled explicitly

Previous implementation has used implicit logic with empty keys arrays,
which might lead to some errors in processing
This commit is contained in:
2026-01-28 13:50:00 +02:00
parent cdcd929cec
commit 7a4367734b
6 changed files with 13 additions and 12 deletions

View File

@@ -151,9 +151,9 @@ void AWKeysAggregator::setTranslate(const bool _translate)
QStringList AWKeysAggregator::registerSource(const QString &_source, const KSysGuard::Unit _units,
const QStringList &_keys)
const QStringList &_keys, const bool _disconnectUnused)
{
qCDebug(LOG_AW) << "Source" << _source << "with units" << _units;
return m_mapper->registerSource(_source, _units, _keys);
return m_mapper->registerSource(_source, _units, _keys, _disconnectUnused);
}