Limit gigabyte sizing string to two decimal figures in file provider storage info

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-01-15 17:27:19 +08:00
parent 81d4aa7446
commit a428256e4f
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -46,7 +46,7 @@ GridLayout {
Layout.row: 0
Layout.column: 1
Layout.alignment: Layout.AlignRight | Layout.AlignVCenter
text: qsTr("%1 GB of %2 GB remote files synced").arg(root.localUsedStorage).arg(root.remoteUsedStorage);
text: qsTr("%1 GB of %2 GB remote files synced").arg(root.localUsedStorage.toFixed(2)).arg(root.remoteUsedStorage.toFixed(2));
color: Style.ncSecondaryTextColor
horizontalAlignment: Text.AlignRight
}