Bug 460422

Summary: Custom 'Switch off after' timeout is reverted to default 10 min after unchecking 'Screen Energy Saving' and reopening 'Energy Saving' KCM
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_powerdevilAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate, quinten0508
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Patrick Silva 2022-10-14 10:49:12 UTC
STEPS TO REPRODUCE
1. open 'Energy Saving' KCM
2. under 'Screen Energy Saving', change the timeout of 'Switch off after' to a non-default value
3. apply the change
4. uncheck 'Screen Energy Saving' and apply the change - the 'Switch off after' timeout remains the one applied in the step 3
5. go to another KCM and go back to 'Energy Saving'

OBSERVED RESULT
after the last step,  the 'Switch off after' timeout is the default 10 min 

EXPECTED RESULT
after the last step, the 'Switch off after' timeout should be the non-default one applied in the step 3

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 1 Patrick Silva 2023-03-19 14:05:16 UTC
*** Bug 467523 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2023-11-01 16:12:52 UTC
This is fixed by Jakob Petsovits with https://invent.kde.org/plasma/powerdevil/-/commit/8babe3530c32feb60e982eccd92fe2341091858d in Plasma 6, which re-does the entire UI and doesn't suffer from this issue anymore.