Update BatteryService.qml

This commit is contained in:
Turann_
2026-02-01 03:42:20 +03:00
parent 61a1e0adff
commit 4eda8ad1fb
+1 -1
View File
@@ -158,7 +158,7 @@ Singleton {
// Logger.e("BatteryDebug", "Available Battery count: " + laptopBatteries.length); // can be useful for debugging
if (laptopBatteries.length > 1 && device.nativePath) {
// In case of 2 batteries: bat0 => bat1 bat1 => bat2
return I18n.tr("common.battery") + " " + parseInt(device.nativePath.substring(3) + 1);
return I18n.tr("common.battery") + " " + (parseInt(device.nativePath.substring(3)) + 1);
}
// If only one battery no numbers needed.
return I18n.tr("common.battery");