Bug 511915 - 'Stop charging at' charge limit value (%) data validated before data entry complete
Summary: 'Stop charging at' charge limit value (%) data validated before data entry co...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_powerdevil (other bugs)
Version First Reported In: 6.5.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2025-11-10 15:13 UTC by JRC
Modified: 2025-12-09 18:34 UTC (History)
4 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 JRC 2025-11-10 15:13:49 UTC
SUMMARY

When trying to change the default 'Stop charging at' limit, the first character of data entered is validated immediately and changed if out of range.  For example, with a default of 80, selecting this text, deleting  entirely and typing '7' will immediately be corrected to 50%, rather than allowing the user to continue typing (e.g. 75).  Similar results will arise if attempting to delete '0' from the default of '80'.

The up/down arrows work as expected, but data directly entered by the user should only be validated (and adjusted if needed) in the same manner as the 'Start charging once below' option.

STEPS TO REPRODUCE
1.  Open Power Management -> Advanced Power Settings
2.  For Charge Limit - Stop Charging at, either: 
select and delete all text, then type a single number; or 
delete the last character of the current value.

OBSERVED RESULT
Value entered is corrected to a default (50%)

EXPECTED RESULT
Allow data entry then apply data validation when user changes text field or clicks Apply, and correct if needed.
Comment 1 TraceyC 2025-12-01 21:39:52 UTC
Thanks for filing this bug report. Unfortunately there isn't enough information for us to try to figure out what's happening. Please add information about your system as requested in the bug report template. Copy and paste this with the information into a new comment.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

Thanks for your understanding
Comment 2 JRC 2025-12-06 14:18:05 UTC
Hi Tracey
Thanks for the follow-up and apologies for omitting this originally.

Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900 12-Core Processor
Memory: 32 GiB of RAM (30.4 GiB usable)
Graphics Processor 1: AMD Radeon RX 580 Series
Graphics Processor 2: AMD Ryzen 9 7900 12-Core Processor