fix: hide not given stats
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user