diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 17:33:30 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 17:33:30 +0200 |
commit | b44a56fdd6cb823de2d444301ae532777f7de6fb (patch) | |
tree | 5436161dd146a0436ec26a4398451f24f675d37c | |
parent | 3a4adb790b4d3bef746f5ad88ef073ef821053fa (diff) | |
download | kube-b44a56fdd6cb823de2d444301ae532777f7de6fb.tar.gz kube-b44a56fdd6cb823de2d444301ae532777f7de6fb.zip |
Avoid autoupdate in testmode
-rw-r--r-- | views/calendar/main.qml | 1 | ||||
-rw-r--r-- | 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 { | |||
144 | View { | 144 | View { |
145 | anchors.fill: parent | 145 | anchors.fill: parent |
146 | currentDate: "2018-04-09" | 146 | currentDate: "2018-04-09" |
147 | autoUpdateDate: false | ||
147 | } | 148 | } |
148 | } | 149 | } |
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 { | |||
27 | id: root | 27 | id: root |
28 | 28 | ||
29 | property date currentDate: new Date() | 29 | property date currentDate: new Date() |
30 | property bool autoUpdateDate: true | ||
30 | 31 | ||
31 | Timer { | 32 | Timer { |
32 | interval: 2000; running: true; repeat: true | 33 | running: autoUpdateDate |
34 | interval: 2000; repeat: true | ||
33 | onTriggered: root.currentDate = new Date() | 35 | onTriggered: root.currentDate = new Date() |
34 | } | 36 | } |
35 | 37 | ||
36 | anchors.fill: parent | ||
37 | |||
38 | StackView.onActivated: { | 38 | StackView.onActivated: { |
39 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "event"}) | 39 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "event"}) |
40 | } | 40 | } |