bluetooth menu: round battery level

This commit is contained in:
end-4
2025-08-30 15:54:11 +02:00
parent b59b7c1e47
commit 3e368141c7
@@ -59,7 +59,7 @@ DialogListItem {
if (!root.device?.paired) return "";
let statusText = root.device?.connected ? Translation.tr("Connected") : Translation.tr("Paired");
if (!root.device?.batteryAvailable) return statusText;
statusText += ` ${root.device?.battery * 100}%`;
statusText += ` ${Math.round(root.device?.battery * 100)}%`;
return statusText;
}
}