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

Fixed massive slowdown in week view on scroll to certain far weeks

parent 5d249852
Pipeline #95232 canceled with stage
......@@ -64,7 +64,6 @@ Kirigami.Page {
let lastItemDate = pathView.model.data(pathView.model.index(pathView.model.rowCount() - 1,0), Kalendar.InfiniteCalendarViewModel.StartDateRole);
while(firstItemDate >= date) {
pathView.model.datesToAdd = 600;
pathView.model.addDates(false)
firstItemDate = pathView.model.data(pathView.model.index(1,0), Kalendar.InfiniteCalendarViewModel.StartDateRole);
newIndex = 0;
......@@ -74,7 +73,6 @@ Kirigami.Page {
}
while(lastItemDate <= date) {
pathView.model.datesToAdd = 600;
pathView.model.addDates(true)
lastItemDate = pathView.model.data(pathView.model.index(pathView.model.rowCount() - 1,0), Kalendar.InfiniteCalendarViewModel.StartDateRole);
}
......
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