From c57c0cf188ccfdab8a3881a97a3568bc3be27afb Mon Sep 17 00:00:00 2001 From: dodoradio Date: Fri, 21 Jul 2023 17:15:53 +0100 Subject: Implement new dataChanged signal for file updates --- src/stepCounter/StepCounterPreview.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stepCounter/StepCounterPreview.qml') 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++) { -- cgit v1.2.3-54-g00ecf