mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Removed settings and configs for battery health
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user