fix: hide not given stats

This commit is contained in:
Hannes
2026-09-02 15:08:26 +02:00
parent f9c14c84b4
commit 0fad9baa5b
2 changed files with 13 additions and 3 deletions
+4
View File
@@ -137,6 +137,7 @@ MouseArea {
Column {
width: parent.width
spacing: 2
visible: BatteryState.percentageHistoryExists
Text {
text: "percentage: " + BatteryState.percentage + "%"
@@ -156,6 +157,7 @@ MouseArea {
Column {
width: parent.width
spacing: 2
visible: BatteryState.energyHistoryExists
Text {
text: "energy: " + Math.round(BatteryState.energy*10)/10 + " W"
@@ -175,6 +177,8 @@ MouseArea {
Column {
width: parent.width
spacing: 2
visible: BatteryState.usageHistoryExists
Text {
text: "Usage: " + BatteryState.energy_rate_formated + " W"
color: Colors.primary