Skip to content

Commit 2468214

Browse files
mohsenD98nirvn
authored andcommitted
Fix float/doubles that does not have leading 0.
1 parent 6a2cf42 commit 2468214

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qml/QFieldCloudScreen.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ Page {
149149
property double usage: 0.0
150150

151151
Material.accent: {
152-
if (usage < .9) {
152+
if (usage < 0.9) {
153153
return Theme.qfieldcloudBlue;
154-
} else if (usage < .975) {
154+
} else if (usage < 0.975) {
155155
return Theme.warningColor;
156156
} else {
157157
return Theme.bookmarkRed;
@@ -677,7 +677,7 @@ Page {
677677
const totalStorage = 1;
678678
storageBar.usage = usedStorage / totalStorage;
679679
storageText.text = qsTr(`${usedStorage} GB of ${totalStorage} GB used`);
680-
if (storageBar.usage >= .975) {
680+
if (storageBar.usage >= 0.975) {
681681
const upgradeStorageText = qsTr("upgrade to more storage here");
682682
storageText.text += `; <a href="https://apps.qfield.cloud/plans">${upgradeStorageText}</a>`;
683683
}

0 commit comments

Comments
 (0)