debug logging of battery percent props

This commit is contained in:
2026-05-27 23:22:09 +02:00
parent 36fb925495
commit 8e14993633
+1
View File
@@ -36,6 +36,7 @@ Scope {
for (const perc of root.popupThresholds) {
if (p <= perc.perc && !perc.warned) {
perc.warned = true;
console.log(perc.warned + "\n" + [...Config.general.battery.popupThresholds][0].warned);
Toaster.toast(perc.title ?? qsTr("Battery warning"), perc.message ?? qsTr("Battery perc is low"), perc.icon ?? "battery_android_alert", perc.critical ? Toast.Error : Toast.Warning);
}
}