diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.qml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main.qml b/src/main.qml index af4dd13..bcf12d8 100644 --- a/src/main.qml +++ b/src/main.qml @@ -27,11 +27,6 @@ Application { centerColor: "#b04d1c" outerColor: "#421c0a" - StepsDataLoader { - id: stepsDataLoader - // Component.onCompleted: stepsLabel.text = getTodayData() - } - property var weekday: ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]; @@ -75,7 +70,14 @@ Application { property var maxValue: 0 property var divisionsInterval: 0 property var divisionsCount: 0 - Component.onCompleted: { + StepsDataLoader { + id: stepsDataLoader + Component.onCompleted: { + triggerDaemonRecording() + stepsGraph.loadData() + } + } + function loadData() { var currDate = new Date() currDate.setDate(currDate.getDate() - 7) for (var i = 0; i < 7; i++) { |