From c99c3fec0d7b1980def3a16e836e7d55f85e85cf Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Wed, 26 Jun 2024 16:48:32 -0500 Subject: [PATCH] Fix battery notification patch --- debian/changelog | 1 + debian/patches/battery-ux.patch | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7137466..185ec88 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ lxqt-powermanagement (2.0.0-0ubuntu1) UNRELEASED; urgency=medium * Fix DPMS-related patch. * Update copyright file. * Adjusted build dependencies. + * Fix battery notification patch. -- Aaron Rainbolt Wed, 26 Jun 2024 15:44:04 -0500 diff --git a/debian/patches/battery-ux.patch b/debian/patches/battery-ux.patch index eb95cb1..c1fac0e 100644 --- a/debian/patches/battery-ux.patch +++ b/debian/patches/battery-ux.patch @@ -57,7 +57,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ + bool discharging; double chargeLevel; -- for (const Solid::Battery *battery : qAsConst(mBatteries)) +- for (const Solid::Battery *battery : std::as_const(mBatteries)) - { - totalEnergyFull += battery->energyFull(); - totalEnergyNow += battery->energy(); @@ -80,7 +80,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ + bool batteries = false; + discharging = true; + -+ for (const Solid::Battery *battery : qAsConst(mBatteries)) ++ for (const Solid::Battery *battery : std::as_const(mBatteries)) + { + batteries = true; +