diff --git a/libnymea-app/tagsmanager.cpp b/libnymea-app/tagsmanager.cpp index 00131d7d..3835f734 100644 --- a/libnymea-app/tagsmanager.cpp +++ b/libnymea-app/tagsmanager.cpp @@ -190,7 +190,6 @@ Tag* TagsManager::unpackTag(const QVariantMap &tagMap) tag->setRuleId(ruleId); } else { qCWarning(dcTags()) << "Invalid tag. Neither thingId nor ruleId are set. Skipping..."; - tag->deleteLater(); return nullptr; } // qDebug() << "adding tag" << tag->tagId() << tag->value(); diff --git a/nymea-app/ui/Nymea.qml b/nymea-app/ui/Nymea.qml index 49b80522..a370e168 100644 --- a/nymea-app/ui/Nymea.qml +++ b/nymea-app/ui/Nymea.qml @@ -54,6 +54,18 @@ ApplicationWindow { font.capitalization: Font.MixedCase font.family: Style.fontFamily + Binding { + target: PlatformHelper + property: "topPanelColor" + value: app.color + } + + Binding { + target: PlatformHelper + property: "bottomPanelColor" + value: app.color + } + property int margins: 16 property int bigMargins: 20 @@ -85,8 +97,6 @@ ApplicationWindow { Component.onCompleted: { styleController.setSystemFont(app.font) - PlatformHelper.topPanelColor = Style.backgroundColor - PlatformHelper.bottomPanelColor = Style.backgroundColor } Binding {