summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2023-05-28 14:24:50 +0100
committerArseniy Movshev <dodoradio@outlook.com>2023-05-28 14:25:18 +0100
commit9aa1dd9ea928768617a7f4b6fe2c87ce7a27f9e9 (patch)
tree380421909395f827b15cfc7a35625280ca882309 /src
parente860240c09c2f4474780823fc9711a64881127f5 (diff)
Add placeholder message in case of no logged steps
Diffstat (limited to 'src')
-rw-r--r--src/main.qml2
1 files changed, 1 insertions, 1 deletions
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
}