From b44a56fdd6cb823de2d444301ae532777f7de6fb Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 1 Aug 2018 17:33:30 +0200 Subject: Avoid autoupdate in testmode --- views/calendar/main.qml | 1 + views/calendar/qml/View.qml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/views/calendar/main.qml b/views/calendar/main.qml index e8cd9c4d..e72d4941 100644 --- a/views/calendar/main.qml +++ b/views/calendar/main.qml @@ -144,5 +144,6 @@ ApplicationWindow { View { anchors.fill: parent currentDate: "2018-04-09" + autoUpdateDate: false } } diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index 505c6754..2ceb6141 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml @@ -27,14 +27,14 @@ RowLayout { id: root property date currentDate: new Date() + property bool autoUpdateDate: true Timer { - interval: 2000; running: true; repeat: true + running: autoUpdateDate + interval: 2000; repeat: true onTriggered: root.currentDate = new Date() } - anchors.fill: parent - StackView.onActivated: { Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "event"}) } -- cgit v1.2.3