summaryrefslogtreecommitdiff
path: root/src/stepCounter
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stepCounter/StepCounterPreview.qml4
-rw-r--r--src/stepCounter/StepsDetailPage.qml1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/stepCounter/StepCounterPreview.qml b/src/stepCounter/StepCounterPreview.qml
index 8ef611e..89f87fd 100644
--- a/src/stepCounter/StepCounterPreview.qml
+++ b/src/stepCounter/StepCounterPreview.qml
@@ -60,8 +60,12 @@ MouseArea {
triggerDaemonRecording()
stepsGraph.loadData()
}
+ onDataChanged: stepsGraph.loadData()
}
function loadData() {
+ valuesArr = []
+ labelsArr = []
+ colorsArr = []
var currDate = new Date()
currDate.setDate(currDate.getDate() - 7)
for (var i = 0; i < 7; i++) {
diff --git a/src/stepCounter/StepsDetailPage.qml b/src/stepCounter/StepsDetailPage.qml
index 7d8dbf4..c792956 100644
--- a/src/stepCounter/StepsDetailPage.qml
+++ b/src/stepCounter/StepsDetailPage.qml
@@ -66,6 +66,7 @@ Item {
triggerDaemonRecording()
stepsGraph.loadData()
}
+ onDataChanged: stepsGraph.loadData()
}
function loadData() {
valuesArr = []