From 5948a704d235be8f5347f3d270103b59f3b2402a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 2 Dec 2025 12:29:37 +0100 Subject: [PATCH] Fix nullptr tag call Fix iOS background color --- libnymea-app/tagsmanager.cpp | 1 - nymea-app/ui/Nymea.qml | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) 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 {