limit decimal amount
This commit is contained in:
parent
ee8f3d9d7b
commit
69cb49c584
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ StyledButton {
|
||||||
}
|
}
|
||||||
return Theme.palette.basecontent;
|
return Theme.palette.basecontent;
|
||||||
}
|
}
|
||||||
text: `${root.laptopBattery.percentage * 100}%`
|
text: `${(root.laptopBattery.percentage.toFixed(2) * 100)}%`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
visible: laptopBattery
|
visible: laptopBattery
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue