Battery widget #7

Merged
Zacharias-Brohn merged 8 commits from battery-widget into main 2026-02-11 16:49:52 +01:00
Showing only changes of commit 0a543a5297 - Show all commits
+1 -1
View File
@@ -16,7 +16,7 @@ Singleton {
function findDevice(): UPowerDevice { function findDevice(): UPowerDevice {
for ( let i = 0; i < root.devices.length; i++ ) { for ( let i = 0; i < root.devices.length; i++ ) {
console.log(root.devices[i]) console.log(root.devices[i])
if ( root.devices[i].type === "Battery" ) { if ( root.devices[i].isLaptopBattery ) {
return root.devices[i]; return root.devices[i];
} }
} }