Skip to content

Fix battery status logic for CHARGING and PENDING_CHARGE states#13742

Open
Konstantin-The-Goose wants to merge 2 commits intolinuxmint:masterfrom
Konstantin-The-Goose:patch-2
Open

Fix battery status logic for CHARGING and PENDING_CHARGE states#13742
Konstantin-The-Goose wants to merge 2 commits intolinuxmint:masterfrom
Konstantin-The-Goose:patch-2

Conversation

@Konstantin-The-Goose
Copy link
Copy Markdown

Fixed issue #13686

Previously, PENDING_CHARGE was unreachable due to duplicated condition checks. This separates the logic so both states are handled correctly (i hope).

Fixed issue linuxmint#13686

Previously, PENDING_CHARGE was unreachable due to duplicated condition checks. This separates the logic so both states are handled correctly (i hope).
@fredcw
Copy link
Copy Markdown
Contributor

fredcw commented May 1, 2026

Is this a typo, you've got two else if conditions the same.

@Konstantin-The-Goose
Copy link
Copy Markdown
Author

Is this a typo, you've got two else if conditions the same.

OH MY GOD yes this is a typo im so sorry

@mtwebster
Copy link
Copy Markdown
Member

So, this has been tested? I'm suspicious now - the original basically did nothing, but it was submitted... now it's fixed.

Sorry for having to ask these types of questions, but I didn't pick this timeline we're in.

@Konstantin-The-Goose
Copy link
Copy Markdown
Author

So, this has been tested? I'm suspicious now - the original basically did nothing, but it was submitted... now it's fixed.

Sorry for having to ask these types of questions, but I didn't pick this timeline we're in.

no sorry i havent tested it. i think it fixes the issue i mentioned in the pr, but i may be wrong

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.

4 participants