Removed settings and configs for battery health

This commit is contained in:
EinBowser
2025-11-04 15:58:01 +01:00
parent c1ff57c3d0
commit 31f2184dc6
4 changed files with 1 additions and 13 deletions
@@ -86,7 +86,7 @@ StyledPopup {
RowLayout {
spacing: 5
visible: Config.options.battery.showHealth && Battery.health > 0
visible: Battery.health > 0
Layout.fillWidth: true
MaterialSymbol {
@@ -257,7 +257,6 @@ Singleton {
property int full: 101
property bool automaticSuspend: true
property int suspend: 3
property bool showHealth: false
}
property JsonObject conflictKiller: JsonObject {
@@ -127,14 +127,6 @@ ContentPage {
}
}
}
ConfigSwitch {
buttonIcon: "healing"
text: Translation.tr('Show battery health in popup')
checked: Config.options.battery.showHealth
onCheckedChanged: {
Config.options.battery.showHealth = checked;
}
}
}
ContentSection {
@@ -32,9 +32,6 @@ Singleton {
property real timeToFull: UPower.displayDevice.timeToFull
property real health: (function() {
if (!Config.options.battery.showHealth) {
return 0;
}
const devList = UPower.devices.values;
for (let i = 0; i < devList.length; ++i) {
const dev = devList[i];