[plasma/powerdevil/Plasma/6.7] kcm/ui: kcm: Fix non-default highlight

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit d5c1316766cc3f805a94ea41516b614d7cad8d3f by Nate Graham.
Committed on 05/08/2026 at 17:11.
Pushed by ngraham into branch 'Plasma/6.7'.

kcm: Fix non-default highlight

In the `Other Settings` section, the `Command or script when inactive`
text field had two SettingStateBinding's. Move the misplaced highlight
to the correct element: the `When inactive` combobox.


(cherry picked from commit c702a0491348aa24a2955189ee40980ee16541ab)

Co-authored-by: Tobias Ozór <[email protected]>

M  +4    -5    kcm/ui/ProfileConfig.qml

https://invent.kde.org/plasma/powerdevil/-/commit/d5c1316766cc3f805a94ea41516b614d7cad8d3f

diff --git a/kcm/ui/ProfileConfig.qml b/kcm/ui/ProfileConfig.qml
index 4d37a492d..ff1634a76 100644
--- a/kcm/ui/ProfileConfig.qml
+++ b/kcm/ui/ProfileConfig.qml
@@ -845,6 +845,10 @@ Kirigami.FormLayout {
         durationPromptLabel: i18nc("@label:spinbox After X minutes", "Run command or script after:")
         durationPromptAcceptsUnits: [DurationPromptDialog.Unit.Seconds, DurationPromptDialog.Unit.Minutes]
 
+        KCM.SettingStateBinding {
+            configObject: profileSettings
+            settingName: "RunScriptIdleTimeoutSec"
+        }
         function translateSeconds(n, formatUnit = DurationPromptDialog.Unit.Seconds) {
             return formatUnit == DurationPromptDialog.Unit.Minutes
                 ? translateMinutes(n / 60) : i18ncp("@option:combobox", "Run after %1 second", "Run after %1 seconds", n);
@@ -916,10 +920,5 @@ Kirigami.FormLayout {
             target: profileSettings
             function onIdleTimeoutCommandChanged() { idleTimeoutCommandEdit.resetToProfileSettings(); }
         }
-        
-        KCM.SettingStateBinding {
-            configObject: profileSettings
-            settingName: "RunScriptIdleTimeoutSec"
-        }
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.