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

Natalie Clarius <natalie_clar...@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/de5a5dbf63c5d1fb91c1cf3a3
                   |                            |f45553b9cca417b
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Natalie Clarius <natalie_clar...@yahoo.de> ---
Git commit de5a5dbf63c5d1fb91c1cf3a3f45553b9cca417b by Natalie Clarius.
Committed on 18/09/2023 at 17:04.
Pushed by nclarius into branch 'master'.

{applets, dataengines}/battery: sync manual inhibition state

With the "manually block" switch, up until now instances of the power applet
would each request their own inhibition from the fd.o service, so state and
toggleability were not synced. To fix this,
- handle the cookies for the inhibition requests in the data engine, so each
applet would access the same inhibition to undo,
- add a listener to changes and a data key for the inhibition status, so
applets could show the current state appropriately,
- uncouple the switch state from the toggle action, so one instance could
request the (un)inhibition while all get their state updated.

M  +2    -0    applets/batterymonitor/package/contents/ui/PopupDialog.qml
M  +7    -1   
applets/batterymonitor/package/contents/ui/PowerManagementItem.qml
M  +4    -20   applets/batterymonitor/package/contents/ui/main.qml
M  +37   -3    dataengines/powermanagement/powermanagementengine.cpp
M  +1    -0    dataengines/powermanagement/powermanagementengine.h
M  +4    -6    dataengines/powermanagement/powermanagementjob.cpp
M  +2    -0    dataengines/powermanagement/powermanagementjob.h
M  +0    -6    dataengines/powermanagement/powermanagementservice.operations

https://invent.kde.org/plasma/plasma-workspace/-/commit/de5a5dbf63c5d1fb91c1cf3a3f45553b9cca417b

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

Reply via email to