mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Update BatteryService.qml
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user