Bug 478981 - Lightning bolt icon is shown in system tray when Power Save mode is enabled
Summary: Lightning bolt icon is shown in system tray when Power Save mode is enabled
Status: RESOLVED FIXED
Alias: None
Product: Powerdevil
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: master
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-25 00:46 UTC by guimarcalsilva
Modified: 2023-12-31 20:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description guimarcalsilva 2023-12-25 00:46:15 UTC
SUMMARY
When any of the power profiles beyond "Balanced" is selected, the applet shows up in the system tray automatically. Unfortunately, the icon it shows in that state is always the Lightning bolt icon which is associated with the performance power profile. When Power Save is enabled, it should show the same leaf icon that is in the applet.

STEPS TO REPRODUCE
1. Have power-profile-daemon installed
2. Change the power profile to Power Save

OBSERVED RESULT
The same Lightning bolt icon that is used for the Performance mode is shown, instead of showing the Leaf icon.

EXPECTED RESULT
Show the Leaf icon for the Power save power profile in the system tray and the Lightning bolt for the Performance power profile.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.91.90
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
The icon does not get shown in Plasma 5 when the power profile is changed, so this is specific to changes made in Plasma 6
Comment 1 Bug Janitor Service 2023-12-29 20:39:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3732
Comment 2 Natalie Clarius 2023-12-31 20:50:17 UTC
Git commit 6de3509dddbb3e95f3059b6dd46e3dd346f496a7 by Natalie Clarius.
Committed on 31/12/2023 at 21:37.
Pushed by nclarius into branch 'master'.

applets/battery: fix conditions for icon indicating power profile

M  +4    -4    applets/batterymonitor/package/contents/ui/CompactRepresentation.qml
M  +2    -2    applets/batterymonitor/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/6de3509dddbb3e95f3059b6dd46e3dd346f496a7