SD card selection: round size instead of floor, and display decimal

Closes #24
This commit is contained in:
Floris Bos 2020-03-09 13:04:59 +01:00
parent 9a0454d07f
commit c04516cbee

View file

@ -648,7 +648,7 @@ ApplicationWindow {
verticalAlignment: Text.AlignVCenter
font.family: roboto.name
text: {
var txt = "<p><font size='4'>"+description+" - "+Math.floor(size/1000000000)+" GB"+"</font></p>"
var txt = "<p><font size='4'>"+description+" - "+(size/1000000000).toFixed(1)+" GB"+"</font></p>"
if (mountpoints.length > 0) {
txt += "<font color='grey'>"+qsTr("Mounted as %1").arg(mountpoints.join(", "))+"</font>"
}