fix double entries in tooltip

This commit is contained in:
notiant
2026-02-02 14:20:14 +01:00
committed by GitHub
parent e94fafc7dc
commit 4604f09322
2 changed files with 3 additions and 9 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ Item {
if (!isReady || !isPresent) {
return I18n.tr("battery.no-battery-detected");
}
const isInternal = selectedDevice.type === UPowerDeviceType.Battery && BatteryService.isLaptopBattery;
const isInternal = selectedDevice.isLaptopBattery;
if (isInternal) {
let timeText = BatteryService.getTimeRemainingText(selectedDevice);