From: Christoph Wolk Date: Sat, 17 May 2025 07:38:00 +0000 (+0000) Subject: [PATCH] applets/systemmonitor: skip configure button on sensorless faces X-Git-Tag: archive/raspbian/4%6.3.5-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=83d228694ff8d5521c16fff791c74eefcceb8de2;p=plasma-workspace.git [PATCH] applets/systemmonitor: skip configure button on sensorless faces Some faces don't need sensors as they have their data included already, namely Process Table and Application Table. The applet does not take this into account and keeps showing the "Configure" button. Instead, don't show that button if one of these faces is the current face. BUG: 504335 FIXED-IN: 6.4.0 (cherry picked from commit 184e883786520d6a7494b4db69dad29d69ff63a6) Co-authored-by: Christoph Wolk Gbp-Pq: Name upstream_b9bc83c6_applets-systemmonitor-skip-configure-button-on-sensorless-faces.patch --- diff --git a/applets/systemmonitor/systemmonitor/package/contents/ui/main.qml b/applets/systemmonitor/systemmonitor/package/contents/ui/main.qml index 6d4480ca..ebc2ba40 100644 --- a/applets/systemmonitor/systemmonitor/package/contents/ui/main.qml +++ b/applets/systemmonitor/systemmonitor/package/contents/ui/main.qml @@ -67,7 +67,12 @@ PlasmoidItem { fullRepresentation: FullRepresentation { } - Plasmoid.configurationRequired: (Plasmoid.faceController ?? false) && Plasmoid.faceController.highPrioritySensorIds.length == 0 && Plasmoid.faceController.lowPrioritySensorIds.length == 0 && Plasmoid.faceController.totalSensors.length == 0 + Plasmoid.configurationRequired: (Plasmoid.faceController ?? false) && + Plasmoid.faceController.highPrioritySensorIds.length == 0 && + Plasmoid.faceController.lowPrioritySensorIds.length == 0 && + Plasmoid.faceController.totalSensors.length == 0 && + ! (["org.kde.ksysguard.applicationstable", + "org.kde.ksysguard.processtable"].includes(Plasmoid.faceController.faceId)) Sensors.Sensor { id: totalSensor