File: upstream_09ce19dc_KCM-add-Screen-Locking-to-related-pages-list.patch

package info (click to toggle)
powerdevil 4%3A6.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 10,512 kB
  • sloc: cpp: 12,912; xml: 1,904; python: 1,204; sh: 18; makefile: 10
file content (46 lines) | stat: -rw-r--r-- 1,784 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 09ce19dc3eab6bd38fae61447bffcf479c681785 Mon Sep 17 00:00:00 2001
From: Nate Graham <nate@kde.org>
Date: Sun, 2 Mar 2025 10:04:48 -0700
Subject: [PATCH] KCM: add "Screen Locking" to related pages list

People seem to want to find it there.

FEATURE: 447366
FIXED-IN: 6.4.0
---
From: Aurélien COUDERC <coucouf@debian.org>
Adapted to apply against Plasma 6.3
---
 kcm/ui/GlobalConfig.qml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/kcm/ui/GlobalConfig.qml b/kcm/ui/GlobalConfig.qml
index 4452ee7d0..c95eb3d12 100644
--- a/kcm/ui/GlobalConfig.qml
+++ b/kcm/ui/GlobalConfig.qml
@@ -369,6 +369,7 @@ Kirigami.ScrollablePage {
 
             readonly property real maxPageButtonImplicitWidth: Math.max(
                 firstRelatedPage.implicitWidth,
+                screenLockingPage.implicitWidth,
                 desktopSessionsPage.implicitWidth,
                 activitiesPage.implicitWidth,
             )
@@ -396,6 +397,14 @@ Kirigami.ScrollablePage {
                 Layout.preferredWidth: relatedPagesLayout.maxPageButtonImplicitWidth
                 onClicked: KCM.KCMLauncher.openSystemSettings("kcm_notifications", "--notifyrc=powerdevil")
             }
+            MostUsedItem {
+                id: screenLockingPage
+                kcmIcon: "preferences-desktop-user-password"
+                kcmName: i18nc("@text:button Name of KCM", "Screen Locking")
+                Accessible.name: i18n("Open \"Screen Locking\" settings page")
+                Layout.preferredWidth: relatedPagesLayout.maxPageButtonImplicitWidth
+                onClicked: KCM.KCMLauncher.openSystemSettings("kcm_screenlocker")
+            }
             MostUsedItem {
                 id: desktopSessionsPage
                 kcmIcon: "system-log-out"
-- 
GitLab