Fix battery notification patch
This commit is contained in:
parent
d0a41a3683
commit
c99c3fec0d
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -4,6 +4,7 @@ lxqt-powermanagement (2.0.0-0ubuntu1) UNRELEASED; urgency=medium
|
|||||||
* Fix DPMS-related patch.
|
* Fix DPMS-related patch.
|
||||||
* Update copyright file.
|
* Update copyright file.
|
||||||
* Adjusted build dependencies.
|
* Adjusted build dependencies.
|
||||||
|
* Fix battery notification patch.
|
||||||
|
|
||||||
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Wed, 26 Jun 2024 15:44:04 -0500
|
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Wed, 26 Jun 2024 15:44:04 -0500
|
||||||
|
|
||||||
|
4
debian/patches/battery-ux.patch
vendored
4
debian/patches/battery-ux.patch
vendored
@ -57,7 +57,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
|||||||
+ bool discharging;
|
+ bool discharging;
|
||||||
double chargeLevel;
|
double chargeLevel;
|
||||||
|
|
||||||
- for (const Solid::Battery *battery : qAsConst(mBatteries))
|
- for (const Solid::Battery *battery : std::as_const(mBatteries))
|
||||||
- {
|
- {
|
||||||
- totalEnergyFull += battery->energyFull();
|
- totalEnergyFull += battery->energyFull();
|
||||||
- totalEnergyNow += battery->energy();
|
- totalEnergyNow += battery->energy();
|
||||||
@ -80,7 +80,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
|||||||
+ bool batteries = false;
|
+ bool batteries = false;
|
||||||
+ discharging = true;
|
+ discharging = true;
|
||||||
+
|
+
|
||||||
+ for (const Solid::Battery *battery : qAsConst(mBatteries))
|
+ for (const Solid::Battery *battery : std::as_const(mBatteries))
|
||||||
+ {
|
+ {
|
||||||
+ batteries = true;
|
+ batteries = true;
|
||||||
+
|
+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user