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

Fixed massive freezing caused by changing date on week view. Fixes #134

parent 567b4263
Pipeline #107543 passed with stage
in 6 minutes and 23 seconds
......@@ -194,7 +194,9 @@ Kirigami.Page {
readonly property bool isNextOrCurrentItem: index >= pathView.currentIndex -1 && index <= pathView.currentIndex + 1
property int multiDayLinesShown: 0
readonly property int daysFromWeekStart: DateUtils.fullDaysBetweenDates(startDate, root.currentDate) - 1
readonly property int daysFromWeekStart: index === pathView.startIndex ?
DateUtils.fullDaysBetweenDates(startDate, root.currentDate) - 1 :
null
// 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
......
// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
// SPDX-License-Identifier: LGPL-2.1-or-later
#define QT_QML_DEBUG
#include <KAboutData>
#include <KCalendarCore/MemoryCalendar>
#include <KCalendarCore/VCalFormat>
......@@ -15,6 +15,7 @@
#include <QDir>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQmlDebuggingEnabler>
#include <QQuickStyle>
#include <QQuickWindow>
#include <QUrl>
......@@ -114,6 +115,7 @@ int main(int argc, char *argv[])
aboutData.processCommandLine(&parser);
QQmlApplicationEngine engine;
QQmlDebuggingEnabler enabler;
auto contactsManager = new ContactsManager(&engine);
auto tagManager = new TagManager(&engine);
......
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