Commit e8feeb10 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fixed current time indicator in three-day and day vioew. Fixes #140

parent ae6c5f9f
Pipeline #111193 passed with stage
in 6 minutes and 20 seconds
......@@ -165,9 +165,8 @@ Kirigami.Page {
}
property date dateToUse
property int startIndex
property int startIndex: root.model.rowCount() / 2;
Component.onCompleted: {
startIndex = root.model.rowCount() / 2;
currentIndex = startIndex;
}
onCurrentIndexChanged: {
......@@ -197,7 +196,7 @@ Kirigami.Page {
readonly property int daysFromWeekStart: index === pathView.startIndex ?
DateUtils.fullDaysBetweenDates(startDate, root.currentDate) - 1 :
root.daysToShow + 1
root.daysToShow
// As long as the date is even slightly larger, it will return 1; since we start from the startDate at 00:00, adjust
active: isNextOrCurrentItem
......
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