Commit 9d1baed6 authored by Volker Krause's avatar Volker Krause

Fix today marker being visible on days with events

parent b8dd697a
......@@ -87,6 +87,7 @@ Kirigami.ScrollablePage {
id: todayDelegate
Item {
implicitHeight: visible ? label.implicitHeight : 0
visible: modelData.isTodayEmpty
QQC2.Label {
id: label
anchors.fill: parent
......@@ -116,12 +117,6 @@ Kirigami.ScrollablePage {
case TimelineModel.TodayMarker: return todayDelegate;
}
}
onLoaded: {
if (modelData.type == TimelineModel.TodayMarker) {
item.visible = modelData.isTodayEmpty;
}
}
}
section.property: "sectionHeader"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment