https://bugs.kde.org/show_bug.cgi?id=523295

            Bug ID: 523295
           Summary: Power inhibition toggle in bigscreen settings has no
                    effect due to QML/C++ property name mismatch
    Classification: Plasma
           Product: Plasma Bigscreen
      Version First unspecified
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Homescreen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

The "Power inhibition" toggle in Plasma Bigscreen settings (System section) is
non-functional. Toggling it has no effect — the setting is never persisted and
the system can still sleep automatically.

Root cause: In commit f968c1df ("bigscreenshell: Extract settings to plugin,
and togglable navigation sounds"), the new C++ class BigscreenShellSettings
defined the property as pmInhibitionEnabled, but the QML in
kcms/bigscreen-settings/ui/main.qml was written to reference
pmInhibitionActive. These names don't match, so:
- Reading: QML accesses a non-existent property → always evaluates to undefined
(falsy), so the toggle always shows OFF
- Writing: QML sets a non-existent property → silent no-op, the C++ setter
setPmInhibitionEnabled() is never called, nothing is written to
plasmabigscreenrc
The other toggles in the same QML file (window decorations, navigation sounds)
use the correct names (windowDecorationsEnabled, navigationSoundEnabled) and
work as expected.

Fix: Rename pmInhibitionActive to pmInhibitionEnabled in the two references at
kcms/bigscreen-settings/ui/main.qml:125-126 to match the Q_PROPERTY declaration
in components/bigscreenshell/bigscreenshellsettings.h.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to