Skip to content

Use KConfigXT i.e. PowerDevil::ProfileSettings in daemon actions and core

Follow-up to the pure KConfigXT data migration in MR !249 (merged), part of the larger series outlined in #23 (closed). This MR only covers the port of the actions themselves, whereas their config widgets i.e. profiles KCM themselves are ported in sister MR !250 (merged) for hopefully easier reviewing.


Action::loadAction() now receives a ProfileSettings instead of a KConfigGroup. It will now check by itself whether or not the action should be enabled, based on action-specific settings. So its boolean return value is actually used now for this purpose.

PowerDevil::Core adapts to this change.

Merge request reports