Skip to content

Commit

Permalink
Ensure no decimals in supply level rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Jun 13, 2022
1 parent 813e1ed commit 0874122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/components/SupplyItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import "../components"
{
anchors.verticalCenter: parent.verticalCenter
width: Theme.itemSizeExtraSmall
text: ""+(100*value_fraction)+"%"
text: ""+Math.round(100*value_fraction)+"%"
color: level <= low_level ? "red" : Theme.highlightColor
font.pixelSize: Theme.fontSizeExtraSmall
}
Expand Down

0 comments on commit 0874122

Please sign in to comment.