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

cwo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/powerdevil/-/commit/9b5c |ma/powerdevil/-/commit/f416
                   |4167b6d91e86f624039a111707a |167f7ebba092f3e053ce85afe9f
                   |144c2ffb0                   |e3bbfd20c

--- Comment #7 from cwo <[email protected]> ---
Git commit f416167f7ebba092f3e053ce85afe9fe3bbfd20c by Christoph Wolk.
Committed on 26/10/2026 at 09:55.
Pushed by cwo into branch 'Plasma/6.8'.

applets/batterymonitor: set switch state on first open

The battery widget sets the manual inhibition switch state whenever
the passed-in property isManuallyInhibited changes. However, this only
works if the Switch is actually loaded when it changes. This is not
necessarily the case, and you can set the manual inhibition with e.g.
a second instance of the widget. If you only open a systray instance
after first toggling the switch elsewhere (in my testing, a standalone
widget), all the things that are actually bound to isManuallyInhibited
(like the icon and power usage warning) will reflect the current state,
but the switch will remain in the off state.

Instead, set the Switch's initial value to isManuallyInhibited.
FIXED-IN: 6.8.2


(cherry picked from commit 9f55a1858e1bf1bddca01674b294662375d55e58)

Co-authored-by: Christoph Wolk <[email protected]>

M  +1    -0    applets/batterymonitor/InhibitionItem.qml

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

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

Reply via email to