summaryrefslogtreecommitdiff
path: root/src/stepCounter/StepCounterPreview.qml
diff options
context:
space:
mode:
authordodoradio <dodoradio@outlook.com>2023-07-21 17:15:53 +0100
committerdodoradio <dodoradio@outlook.com>2023-07-21 17:19:55 +0100
commitc57c0cf188ccfdab8a3881a97a3568bc3be27afb (patch)
treefbc58b9c34375a56d2333221bf110d0a050278cf /src/stepCounter/StepCounterPreview.qml
parentbe6c18b988175ba0b1c54d390e4e5989b1b79037 (diff)
Implement new dataChanged signal for file updates
Diffstat (limited to '')
-rw-r--r--src/stepCounter/StepCounterPreview.qml4
1 files changed, 4 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++) {