parent
2c6cba4995
commit
fc3ba2730b
@ -1,47 +0,0 @@
|
||||
From b8544fc070e88614feb9c198f6ea910c91f3c5d5 Mon Sep 17 00:00:00 2001
|
||||
From: Ismael Asensio <isma.af@gmail.com>
|
||||
Date: Mon, 6 Nov 2023 19:13:37 +0000
|
||||
Subject: [PATCH] kcms/nightcolor: Fix nightcolor with automatic location
|
||||
|
||||
As it turns out that the UI never send the geo-location to the
|
||||
backend so backend always fallbacks to (0, 0) lat and lon
|
||||
coordinates unless manually changed by `qdbus` commad..
|
||||
|
||||
BUG: 469730
|
||||
FIXED-IN: 5.27.10
|
||||
|
||||
|
||||
(cherry picked from commit cb2b0e9c036d844d87fd104a3ae031b59243eaa5)
|
||||
---
|
||||
kcms/nightcolor/package/contents/ui/main.qml | 15 +++++++++++++++
|
||||
1 file changed, 15 insertions(+)
|
||||
|
||||
diff --git a/kcms/nightcolor/package/contents/ui/main.qml b/kcms/nightcolor/package/contents/ui/main.qml
|
||||
index c7d237f13b..418c05d42f 100644
|
||||
--- a/kcms/nightcolor/package/contents/ui/main.qml
|
||||
+++ b/kcms/nightcolor/package/contents/ui/main.qml
|
||||
@@ -60,6 +60,21 @@ KCM.SimpleKCM {
|
||||
}
|
||||
}
|
||||
|
||||
+ // Update backend when locator is changed
|
||||
+ Connections {
|
||||
+ target: locator
|
||||
+ function onLatitudeChanged() {
|
||||
+ if (root.doneLocating) {
|
||||
+ kcm.nightColorSettings.latitudeAuto = locator.latitude
|
||||
+ }
|
||||
+ }
|
||||
+ function onLongitudeChanged() {
|
||||
+ if (root.doneLocating) {
|
||||
+ kcm.nightColorSettings.longitudeAuto = locator.latitude
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
header: ColumnLayout{
|
||||
Kirigami.InlineMessage {
|
||||
id: errorMessage
|
||||
--
|
||||
GitLab
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA512 (breeze-fedora-0.2.tar.gz) = ff800e686b0dcb498f321bb94d3a8274c89c092f5408ef1ec3fc65333f046aea43444144ecaf166792f807014383af87b1180dc7540905fc10dc375309f8b2a8
|
||||
SHA512 (plasma-workspace-5.27.9.1.tar.xz) = 6aa1e69bba9b293646d5d2c819ec8ab1ba8b82b3a050f7122cdfa8c3580bffe8a7fe1e6422bb0f6e87d716df609e5fd49f2e20ebbe7296e43663eeca6d897442
|
||||
SHA512 (plasma-workspace-5.27.10.tar.xz) = de56a884c05101672b5339cd64b345351f602b33b14daa666e18427251980f557dd65fe35f77c3a361507e3372b05e03b713123e2a7cad29c6bba2af2b43b5a7
|
||||
|
Loading…
Reference in new issue