Turn the config into the single source of truth

Authored by ervin on Oct 3 2019, 12:09 PM.

Description

Turn the config into the single source of truth

Summary:
The module had a somewhat convoluted logic around the management of its
settings. Sometimes it was reading through Plasma::Theme (mostly
proxying in some form what was in the config), sometimes straight from
KConfig. We now got rid of m_defaultTheme to avoid the temptation of
reading from it, KConfig is our only source of settings.

We kept a single call to Plasma::Theme on save, but that's simply to
ensure proper signalling of the change to the running shell.

Reviewers: Plasma, mart

Reviewed By: Plasma, mart

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D24392

Details

Committed
ervinOct 4 2019, 8:16 AM
Reviewer
Plasma
Differential Revision
D24392: Turn the config into the single source of truth
Parents
R119:9b3f36009fba: Silence warnings (noops + unused capture variable)
Branches
Unknown
Tags
Unknown