Bug 505071

Summary: The battery charge limit settings spin box works wrong
Product: [Applications] systemsettings Reporter: Lech <misc>
Component: kcm_powerdevilAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: cwo.kde, kde, natalie_clarius, nate
Priority: NOR Keywords: usability
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lech 2025-05-31 18:43:13 UTC
SUMMARY

Deleting "100%" in the spin entry text box and entering anything, or backspacing on 2 characters of "100%" causes it to fill up with "50%", while it should just fill up with the value I enter or allow me to backspace everything. Then, editing the "50%" is normal.

STEPS TO REPRODUCE
1. Open the Power and Battery widget
2. Click on "Configure Power Management" icon
3. Click on "Advanced Power Settings"
4. Change (or try to change) the "Charge Limit" in the spinbox, by backspacing, or deleting the whole and entering a new value

OBSERVED RESULT
"50%" appears

EXPECTED RESULT
Only what I enter appears

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Comment 1 cwo 2025-06-01 07:32:37 UTC
Can reproduce. This is not optimal, and likely caused by the spinbox being to aggressive about ensuring a valid value.
Comment 2 Nate Graham 2025-06-03 22:41:06 UTC
Yep.