mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
SD card selection: round size instead of floor, and display decimal
Closes #24
This commit is contained in:
parent
9a0454d07f
commit
c04516cbee
1 changed files with 1 additions and 1 deletions
2
main.qml
2
main.qml
|
@ -648,7 +648,7 @@ ApplicationWindow {
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
font.family: roboto.name
|
font.family: roboto.name
|
||||||
text: {
|
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) {
|
if (mountpoints.length > 0) {
|
||||||
txt += "<font color='grey'>"+qsTr("Mounted as %1").arg(mountpoints.join(", "))+"</font>"
|
txt += "<font color='grey'>"+qsTr("Mounted as %1").arg(mountpoints.join(", "))+"</font>"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue