From 9aa1dd9ea928768617a7f4b6fe2c87ce7a27f9e9 Mon Sep 17 00:00:00 2001 From: Arseniy Movshev Date: Sun, 28 May 2023 14:24:50 +0100 Subject: Add placeholder message in case of no logged steps --- src/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.qml b/src/main.qml index cb97b7a..af4dd13 100644 --- a/src/main.qml +++ b/src/main.qml @@ -59,7 +59,7 @@ Application { Label { width: parent.width*0.8 anchors.horizontalCenter: parent.horizontalCenter - text: "You've walked " + stepsDataLoader.getTodayData() + " steps today, keep it up!" + text: stepsDataLoader.getTodayData() ? "You've walked " + stepsDataLoader.getTodayData() + " steps today, keep it up!" : "You haven't yet logged any steps today" wrapMode: Text.WordWrap horizontalAlignment: Text.AlignHCenter } -- cgit v1.2.3-70-g09d2