forked from Shinonome/dots-hyprland
Removed settings and configs for battery health
This commit is contained in:
@@ -86,7 +86,7 @@ StyledPopup {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 5
|
spacing: 5
|
||||||
visible: Config.options.battery.showHealth && Battery.health > 0
|
visible: Battery.health > 0
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
|
|||||||
@@ -257,7 +257,6 @@ Singleton {
|
|||||||
property int full: 101
|
property int full: 101
|
||||||
property bool automaticSuspend: true
|
property bool automaticSuspend: true
|
||||||
property int suspend: 3
|
property int suspend: 3
|
||||||
property bool showHealth: false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
property JsonObject conflictKiller: JsonObject {
|
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 {
|
ContentSection {
|
||||||
|
|||||||
@@ -32,9 +32,6 @@ Singleton {
|
|||||||
property real timeToFull: UPower.displayDevice.timeToFull
|
property real timeToFull: UPower.displayDevice.timeToFull
|
||||||
|
|
||||||
property real health: (function() {
|
property real health: (function() {
|
||||||
if (!Config.options.battery.showHealth) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
const devList = UPower.devices.values;
|
const devList = UPower.devices.values;
|
||||||
for (let i = 0; i < devList.length; ++i) {
|
for (let i = 0; i < devList.length; ++i) {
|
||||||
const dev = devList[i];
|
const dev = devList[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user