davidedmundson added a comment.
If you want to do this without casting another approach is to load the legacy version as the default config().parent().readEntry<int>("panelVisibility", config.readEntry(, NormalPanel)); REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D4087 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: mart, #plasma Cc: davidedmundson, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas