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

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

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

--- Comment #5 from Natalie Clarius <natalie_clar...@yahoo.de> ---
Git commit ba7cbbf04e2ffe88b0388d2a392513c6b382922f by Natalie Clarius.
Committed on 24/04/2024 at 23:22.
Pushed by nclarius into branch 'master'.

applets/brightness: fix night light inhibition state not synced across
instances of the applet

Integrate inhibition properties into the monitor class so it becomes a night
light control class, which also simplifies the back-of-the-frontend code.

Then use a static self member for the night light inhibitor from the control
class, so that the inhibition state data (state, pending inhibits and cookie)
can be shared among the applet instances.

Monitor the inhibited property to also pick up inhibitions created from outside
the applet.

M  +28   -48   applets/brightness/package/contents/ui/NightLightItem.qml
M  +17   -36   applets/brightness/package/contents/ui/main.qml
M  +1    -1    applets/brightness/plugin/CMakeLists.txt
R  +87   -46   applets/brightness/plugin/nightlightcontrol.cpp [from:
applets/brightness/plugin/nightlightmonitor.cpp - 060% similarity]
R  +28   -6    applets/brightness/plugin/nightlightcontrol.h [from:
applets/brightness/plugin/nightlightmonitor.h - 082% similarity]
R  +10   -3    applets/brightness/plugin/nightlightcontrol_p.h [from:
applets/brightness/plugin/nightlightmonitor_p.h - 081% similarity]
M  +36   -32   applets/brightness/plugin/nightlightinhibitor.cpp
M  +17   -18   applets/brightness/plugin/nightlightinhibitor.h

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

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

Reply via email to