Skip to content

panel : battery : only show power mode popover if it is available and replace the icon with a power icon if the device doesn’t have a battery#473

Merged
trigg merged 3 commits into
WayfireWM:power-profilesfrom
AKArien:power-profiles
Jun 5, 2026
Merged

Conversation

@AKArien
Copy link
Copy Markdown
Collaborator

@AKArien AKArien commented Jun 4, 2026

do not connect open_on if the power-profiles-daemon interface is not found, thus not letting the user open an empty popover, which would be jarring

use the power icon corresponding to the current state if the device doesn’t have a battery but power profiles switching is available

if neither are available, still ignore the widget

@AKArien AKArien marked this pull request as draft June 4, 2026 22:48
@AKArien AKArien changed the title panel : battery : only show power mode popover if it is available panel : battery : only show power mode popover if it is available and replace the icon with a power icon if the device doesn’t have a battery Jun 4, 2026
do not connect open_on if the power-profiles-daemon interface is not found,
thus not letting the user open an empty popover, which wuold be jarring
… available

use the power icon corresponding to the current state if the device doesn’t
have a battery but power profiles switching is available
if neither are available, still ignore the widget
@AKArien AKArien marked this pull request as ready for review June 5, 2026 10:42
@AKArien AKArien requested a review from trigg June 5, 2026 10:43
panel: fix first icon being invaid for machines without system battery
@trigg trigg merged commit 6bfc9f5 into WayfireWM:power-profiles Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants