From c04516cbee5623016b662a25e4a8f3e81b1e51b0 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Mon, 9 Mar 2020 13:04:59 +0100 Subject: [PATCH] SD card selection: round size instead of floor, and display decimal Closes #24 --- main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.qml b/main.qml index 2a5a3c0..3b27b4a 100644 --- a/main.qml +++ b/main.qml @@ -648,7 +648,7 @@ ApplicationWindow { verticalAlignment: Text.AlignVCenter font.family: roboto.name text: { - var txt = "

"+description+" - "+Math.floor(size/1000000000)+" GB"+"

" + var txt = "

"+description+" - "+(size/1000000000).toFixed(1)+" GB"+"

" if (mountpoints.length > 0) { txt += ""+qsTr("Mounted as %1").arg(mountpoints.join(", "))+"" }