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

Tobias Ozór <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c702a0491348aa24a2955189ee40980ee16541ab by Tobias Ozór.
Committed on 04/08/2026 at 18:36.
Pushed by ngraham into branch 'master'.

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.

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

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

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.