[Containment] Don't load containment actions with plasma/containment_actions KIOSK restriction

Allows disabling all containment actions, such as context menus, middle click paste, wheel desktop switch, etc.

Differential Revision: https://phabricator.kde.org/D14045
This commit is contained in:
Kai Uwe Broulik 2018-07-17 15:52:55 +02:00
parent 25536d86aa
commit 0351ea74b2

View File

@ -187,7 +187,7 @@ void Containment::restore(KConfigGroup &group)
restoreContents(group);
setImmutability((Types::ImmutabilityType)group.readEntry("immutability", (int)Types::Mutable));
if (isContainment()) {
if (isContainment() && KAuthorized::authorize(QStringLiteral("plasma/containment_actions"))) {
KConfigGroup cfg = KConfigGroup(corona()->config(), "ActionPlugins");
cfg = KConfigGroup(&cfg, QString::number(containmentType()));