Commit fc39f59e authored by Bart Ribbers's avatar Bart Ribbers
Browse files

community/plasma-settings: upgrade to 0.2

parent 8457a320
From ffacddbbd74cbe9905846ab29b05188fb75055c9 Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tcanabrava@kde.org>
Date: Tue, 9 Mar 2021 09:23:29 +0000
Subject: [PATCH] Fix values stored on disk
---
modules/powermanagement/mobilepower.cpp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/powermanagement/mobilepower.cpp b/modules/powermanagement/mobilepower.cpp
index bd04ba8..95ef3c7 100644
--- a/modules/powermanagement/mobilepower.cpp
+++ b/modules/powermanagement/mobilepower.cpp
@@ -157,7 +157,10 @@ void MobilePower::load()
qDebug() << "Group is valid";
KConfigGroup dimSettings = batteryGroup.group("DimDisplay");
d->sleepScreen = true;
- d->sleepScreenTime = dimSettings.readEntry("idleTime").toInt() / 60;
+
+ // dimdisplayconfig.cpp - here we store time * 60 * 1000
+ // We should really, really, stop doing that.
+ d->sleepScreenTime = (dimSettings.readEntry("idleTime").toInt() / 60) / 1000;
} else {
qDebug() << "Group is invalid, setting sleep screen to false";
d->sleepScreen = false;
@@ -186,7 +189,10 @@ void MobilePower::save()
batteryGroup.deleteGroup("DimDisplay");
} else {
KConfigGroup dimDisplayGroup = batteryGroup.group("DimDisplay");
- dimDisplayGroup.writeEntry("idleTime", d->sleepScreenTime * 60);
+
+ // dimdisplayconfig.cpp - here we store time * 60 * 1000
+ // We should really, really, stop doing that.
+ dimDisplayGroup.writeEntry("idleTime", d->sleepScreenTime * 60 * 1000);
}
KConfigGroup lockScreenGroup = batteryGroup.group("SuspendSession");
--
GitLab
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-settings
pkgver=0.1
pkgrel=1
pkgver=0.2
pkgrel=0
pkgdesc="Settings application for Plasma Mobile"
# armhf blocked by extra-cmake-modules
# s390x and mips64 blocked by kauth-dev
......@@ -18,6 +18,7 @@ depends="
makedepends="
extra-cmake-modules
kauth-dev
kcmutils-dev
kconfig-dev
kcoreaddons-dev
kdbusaddons-dev
......@@ -30,7 +31,9 @@ makedepends="
qt5-qtdeclarative-dev
solid-dev
"
source="https://download.kde.org/stable/plasma-settings/$pkgver/plasma-settings-$pkgver.tar.xz"
source="https://download.kde.org/stable/plasma-settings/$pkgver/plasma-settings-$pkgver.tar.xz
0001-fix-values-stored-on-disk.patch
"
options="!check" # No tests
build() {
......@@ -44,4 +47,5 @@ build() {
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="a1796c76fd81b306daa65cd4a2795a958d41fa091bd69df3a34f046eef7e4698d634608fd1362a1074743f40227ecbc3e1a5c91dcf1aa7bd1a5a804079602d6e plasma-settings-0.1.tar.xz"
sha512sums="fc396b971a8ae7377238be2989c70cd0ec4a70ef79f535887ff5a6fbb678f4e2145d08420e001488df6dcb16829b09253c61071efa64798e0622c92bc09e7c1b plasma-settings-0.2.tar.xz
f274af41a559b070ab0a1a0228561564327e6a22ff495c49fe0749fab0f2382324cbea0649f8586ddc4fbf48139f7fddcfe9edbde7bbacf65dc4b2279710b85b 0001-fix-values-stored-on-disk.patch"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment