Restore favorites and groups mechanism

This commit is contained in:
Simon Stürz 2025-12-12 15:28:35 +01:00
parent 238e86c930
commit b4a4f993ff
2 changed files with 6 additions and 2 deletions

View File

@ -145,7 +145,7 @@ bool TagsProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_
qCDebug(dcTags) << "Filter: ID:" << m_filterTagId << "Thing:" << m_filterThingId << "value:" << m_filterValue;
if (!m_filterTagId.isEmpty()) {
QRegularExpression exp(m_filterTagId);
if (exp.match(tag->tagId()).hasMatch()) {
if (!exp.match(tag->tagId()).hasMatch()) {
return false;
}
}

View File

@ -150,7 +150,11 @@ void TagsManager::getTagsResponse(int /*commandId*/, const QVariantMap &params)
{
QList<Tag*> tags;
foreach (const QVariant &tagVariant, params.value("tags").toList()) {
Tag *tag = unpackTag(tagVariant.toMap());
QVariantMap tagMap = tagVariant.toMap();
if (tagMap.value("appId").toString() != "nymea:app") {
continue;
}
Tag *tag = unpackTag(tagMap);
if (tag) {
tags.append(tag);
}