Summary: | "Manually block" checkbox state not shared between multiple widgets | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | spamulousbastard+kde |
Component: | Battery Monitor | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | aubergine, kde, me, nate, oded, spamulousbastard+kde |
Priority: | NOR | ||
Version: | 5.24.5 | ||
Target Milestone: | 1.0 | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/de5a5dbf63c5d1fb91c1cf3a3f45553b9cca417b | Version Fixed In: | 6.0 |
Sentry Crash Report: |
Description
spamulousbastard+kde
2022-06-22 18:55:23 UTC
*** Bug 473519 has been marked as a duplicate of this bug. *** *** Bug 470913 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3294 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 |