From f7790e2ed3b405504a750beeeaf2c9c00c5c3cdd Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 13 Feb 2021 15:23:14 +0100 Subject: [PATCH] Fix placeholder names for supplies --- qml/components/SupplyItem.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qml/components/SupplyItem.qml b/qml/components/SupplyItem.qml index 29749eb..e0aea77 100644 --- a/qml/components/SupplyItem.qml +++ b/qml/components/SupplyItem.qml @@ -9,8 +9,8 @@ import "../components" property int level: 100 property int high_level: 100 property int low_level: 0 - property string name: qsTr("Unknown supply") - property string type: qsTr("Unknown type") + property string name: "" + property string type: "" spacing: Theme.paddingMedium bottomPadding: Theme.paddingMedium @@ -34,12 +34,12 @@ import "../components" anchors.verticalCenter: parent.verticalCenter Label { - text: name + text: name != "" ? name : qsTr("Unknown supply") font.pixelSize: Theme.fontSizeExtraSmall } Label { - text: type + text: type != "" ? type : qsTr("Unknown type") font.pixelSize: Theme.fontSizeExtraSmall color: Theme.secondaryColor }