Bug 482089 - No battery available: Brightness and Energy applet still offers option for it
Summary: No battery available: Brightness and Energy applet still offers option for it
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Battery Monitor (show other bugs)
Version: 6.0.0
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-29 20:47 UTC by postix
Modified: 2024-03-11 15:12 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (185.69 KB, image/png)
2024-02-29 20:47 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2024-02-29 20:47:22 UTC
Created attachment 166220 [details]
Screenshot

SUMMARY

As far as it seems all battery options are hidden, when no battery is detected.
However, the Brightness and Energy applet still offers option for it:
"%  Show Battery percentage on icon when not fully charged".

I guess this is an left over?


SOFTWARE/OS VERSIONS
Operating System: Fedora-KDE-Live-x86_64-Rawhide-20240229.n.0.iso
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.0-rc5
Graphics Platform: Wayland
Graphics Processor: SVGA3D; build; RELEASE; LLVM;
VirtualBox 7.0 on openSUSE TW
Captured Cursure; Windowed mode
Comment 1 guimarcalsilva 2024-02-29 23:22:09 UTC
Can reproduce. The option is still available in the hamburger menu without a battery. I guess that option could be hidden if no internal batteries are available.
Comment 2 Bug Janitor Service 2024-03-11 14:01:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4043
Comment 3 Natalie Clarius 2024-03-11 14:47:02 UTC
Git commit 3f45a15f58d298988763772df365b890052d5e5b by Natalie Clarius.
Committed on 11/03/2024 at 13:59.
Pushed by nclarius into branch 'master'.

applets/battery: hide battery percentage option when no batteries available

M  +1    -0    applets/batterymonitor/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/3f45a15f58d298988763772df365b890052d5e5b
Comment 4 Natalie Clarius 2024-03-11 15:12:51 UTC
Git commit 58d9aa5abc17493263b59b0b10fb9e70ce98e854 by Natalie Clarius.
Committed on 11/03/2024 at 14:47.
Pushed by nclarius into branch 'Plasma/6.0'.

applets/battery: hide battery percentage option when no batteries available


(cherry picked from commit 3f45a15f58d298988763772df365b890052d5e5b)

M  +1    -0    applets/batterymonitor/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/58d9aa5abc17493263b59b0b10fb9e70ce98e854