Fix nullptr tag call

Fix iOS background color
pull/1129/head
Simon Stürz 2025-12-02 12:29:37 +01:00
parent 1e3171a379
commit 5948a704d2
2 changed files with 12 additions and 3 deletions

View File

@ -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();

View File

@ -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 {